.ipcl-practice {
  position: fixed;
  inset: auto auto 14px 14px;
  z-index: 10;
  width: max-content;
  max-width: calc(100vw - 28px);
  color-scheme: dark;
  color: #f0ebe1;
  background: #17201f;
  border: 1px solid #62736b;
  border-radius: 12px;
  box-shadow: 0 14px 44px #080e0c66;
  font: 14px/1.45 system-ui, sans-serif;
}
.ipcl-practice summary {
  padding: 10px 16px;
  cursor: pointer;
  color: #f6ddab;
  font-weight: 700;
}
.ipcl-practice[open] summary {
  border-bottom: 1px solid #3f5049;
}
.ipcl-practice-content {
  box-sizing: border-box;
  width: min(470px, calc(100vw - 28px));
  max-height: min(660px, calc(100dvh - 82px));
  overflow: auto;
  padding: 18px 20px;
}
.ipcl-practice header {
  margin-bottom: 18px;
  border-left: 3px solid #cead6a;
  padding-left: 12px;
}
.ipcl-practice h1 {
  margin: 0;
  font: 600 clamp(22px, 5vw, 32px)/1.13 Georgia, serif;
}
.ipcl-practice p {
  margin: 8px 0 0;
}
.ipcl-practice .ipcl-motto {
  color: #e3c488;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.ipcl-practice fieldset {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}
.ipcl-practice legend {
  margin-bottom: 5px;
  padding: 0;
}
.ipcl-practice .ipcl-mode label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-right: 12px;
}
.ipcl-practice .ipcl-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ipcl-practice select,
.ipcl-practice textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 4px 0 12px;
  padding: 8px;
  border: 1px solid #718478;
  border-radius: 5px;
  color: inherit;
  background: #111918;
  font: inherit;
}
.ipcl-practice textarea {
  resize: vertical;
  font-family: ui-monospace, monospace;
}
.ipcl-practice [hidden] {
  display: none;
}
.ipcl-practice button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  background: #f0ce8e;
  color: #17201f;
  font: 700 14px system-ui, sans-serif;
}
.ipcl-practice .ipcl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ipcl-practice [data-ipcl-challenge] {
  background: transparent;
  border-color: #718478;
  color: inherit;
}
.ipcl-practice :focus-visible {
  outline: 2px solid #f6ddab;
  outline-offset: 3px;
}
.ipcl-practice .ipcl-help {
  color: #bac8bd;
  font-size: 12px;
}
.ipcl-practice [role="status"]:empty {
  display: none;
}

#mainmenu form[data-search="1"],
#mainmenu button[name="joinRoom"][value="ladder"],
#mainmenu button[name="send"][value="/smogtours"] {
  display: none;
}

.ipcl-legacy-difficulty {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px;
}
.ipcl-legacy-difficulty select {
  max-width: 100%;
}

.ipcl-pantheon {
  width: min(880px, calc(100vw - 28px));
  max-height: 86dvh;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #62736b;
  border-radius: 12px;
  background: #17201f;
  color: #f0ebe1;
  color-scheme: dark;
  font: 14px/1.45 system-ui, sans-serif;
}
.ipcl-pantheon::backdrop { background: #080e0cbb; }
.ipcl-pantheon header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ipcl-pantheon header p { margin: 0; color: #f0ce8e; }
.ipcl-pantheon h2 { margin: 0 0 12px; font: 30px Georgia, serif; }
.ipcl-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(332px, 100%), 1fr)); gap: 12px; }
.ipcl-profile { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: #202b28; border: 1px solid #3f5049; border-radius: 8px; }
.ipcl-profile img { flex: 0 0 80px; image-rendering: pixelated; }
.ipcl-profile h3 { margin: 0 0 4px; font: 22px Georgia, serif; }
.ipcl-profile h3 span { color: #f0ce8e; font: 12px system-ui, sans-serif; }
.ipcl-profile p, .ipcl-profile blockquote { margin: 6px 0; }
.ipcl-profile blockquote { color: #e3c488; font-style: italic; }
.ipcl-pantheon button { background: #f0ce8e; color: #17201f; border: 0; border-radius: 4px; padding: 6px 9px; cursor: pointer; }
.ipcl-practice [data-ipcl-style] { color: #e3c488; font-size: 12px; }
@media (max-width: 400px) {
  .ipcl-profile { gap: 7px; padding: 8px; }
  .ipcl-profile img { width: 60px; height: 60px; flex-basis: 60px; }
}
