/* OX 퀴즈 허브 · 풀이 화면 */

.ox-hub {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 28px;
}

.ox-hero,
.ox-panel {
  padding: 18px 20px;
  border: 1px solid #dbe7fb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 64, 175, .06);
}

.ox-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
  gap: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
}

.ox-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.ox-hero__kicker em {
  padding: 2px 7px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.ox-hero h2 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.6px;
}
.ox-hero__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ox-home {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 2px 4px;
  color: #2563eb;
  text-decoration: none;
}
.ox-home svg {
  width: 22px;
  height: 22px;
  fill: #2563eb;
  stroke: none;
}
.ox-home path {
  fill: #2563eb;
  stroke: none;
}
.ox-home span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.2px;
  line-height: 1;
}
.ox-home--hero {
  color: #1e3a5f;
}
.ox-home--hero svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #1e3a5f;
  stroke-width: 1.7;
}
.ox-home--hero path,
.ox-home--hero .ox-home__body {
  fill: #fff;
  stroke: #1e3a5f;
}
.ox-home--hero .ox-home__door {
  fill: #2dd4bf;
  stroke: #1e3a5f;
  stroke-width: 1.4;
}
.ox-home--hero span {
  color: #1e3a5f;
}

.ox-hero p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.ox-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ox-stat {
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e8f0ff;
}

.ox-stat span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.ox-stat strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.ox-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ox-panel__head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.ox-panel__head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.ox-modes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ox-panel--modes,
html.ios-native-app .ox-panel--modes {
  display: none !important;
}

.ox-mode {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 16px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.ox-mode:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .08);
}

.ox-mode.is-on {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
}

.ox-mode__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f1f5f9;
  font-size: 20px;
}

.ox-mode.is-on .ox-mode__icon {
  background: #dbeafe;
}

.ox-mode strong {
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.ox-mode span {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.ox-filters {
  display: flex;
  gap: 8px;
}

.ox-filter {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ox-filter.is-on {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.ox-subjects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ox-subject {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #dbe7fb;
  border-radius: 18px;
  background: #fff;
  text-align: left;
}

.ox-subject__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ox-subject__title {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.ox-subject__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
}

.ox-subject__meta b {
  color: #1d4ed8;
  font-weight: 800;
}

.ox-subject__go {
  align-self: flex-end;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ox-subject__go:hover {
  background: #1d4ed8;
}

.ox-empty {
  padding: 28px 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.ox-solve {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.ox-crumb {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.ox-crumb b {
  color: #0f172a;
}

.ox-qbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.ox-qbar__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  flex: 1;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.ox-qbar__track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.ox-qbar__fill {
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.ox-qbar__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.ox-card {
  padding: 22px 22px 18px;
  border: 1px solid #dbe7fb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.ox-guide {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.ox-material {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.ox-ask {
  margin: 0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.ox-ask__tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
}

.ox-passage {
  position: relative;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #93c5fd;
  border-radius: 14px;
  background: #f8fafc;
}

.ox-passage__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 800;
}

.ox-passage__body {
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ox-passage__img {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.ox-mark {
  padding: 0 2px;
  border-radius: 4px;
  background: #fef08a;
  color: #854d0e;
  font-weight: 800;
}

.ox-criteria {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.ox-criteria b {
  margin-right: 6px;
  font-weight: 800;
}

.ox-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.ox-card__text {
  margin: 0 auto;
  max-width: 920px;
  color: #0f172a;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: -.4px;
  text-align: center;
}

.ox-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.ox-choice {
  min-height: 88px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.ox-choice--o { color: #2563eb; }
.ox-choice--x { color: #e11d48; }
.ox-choice:hover { border-color: #93c5fd; background: #eff6ff; }
.ox-choice--o.is-on,
.ox-choice--o.is-ok { background: #2563eb; border-color: #2563eb; color: #fff; }
.ox-choice--x.is-on,
.ox-choice--x.is-ok { background: #e11d48; border-color: #e11d48; color: #fff; }
.ox-choice.is-bad { opacity: .38; }

.ox-hint {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.ox-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.ox-tool {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ox-tool.is-on {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.ox-tool--next {
  margin-left: auto;
  border: 0;
  background: #2563eb;
  color: #fff;
}

.ox-explain,
.ox-side {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}

.ox-box {
  padding: 16px 18px;
  border: 1px solid #dbe7fb;
  border-radius: 18px;
  background: #fff;
}

.ox-box h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.ox-box p,
.ox-box li {
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.65;
}

.ox-box ul {
  margin: 0;
  padding-left: 18px;
}

.ox-verdict {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.ox-verdict.is-ok { background: #dcfce7; color: #166534; }
.ox-verdict.is-bad { background: #fee2e2; color: #b91c1c; }

.ox-ex__verdict {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.ox-ex__verdict b {
  font-size: 17px;
}

.ox-ex__verdict b.is-o { color: #2563eb; }
.ox-ex__verdict b.is-x { color: #e11d48; }

.ox-ex__quote {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-left: 3px solid #93c5fd;
  border-radius: 0 10px 10px 0;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
}

.ox-ex__quote::before { content: '“'; }
.ox-ex__quote::after { content: '”'; }

.ox-ex__reason {
  margin: 0 0 10px;
}

.ox-ex__fix,
.ox-ex__term {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.ox-ex__fix {
  background: #ecfdf5;
  color: #065f46;
}

.ox-ex__term {
  background: #f5f3ff;
  color: #5b21b6;
}

@media (max-width: 1100px) {
  .ox-hero,
  .ox-explain,
  .ox-side { grid-template-columns: 1fr; }
  .ox-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ox-subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .ox-hint { display: none; }
}

@media (max-width: 720px) {
  .ox-modes,
  .ox-subjects,
  .ox-choices { grid-template-columns: 1fr; }
  .ox-tool--next { margin-left: 0; width: 100%; }
  .ox-card { padding: 16px 14px 14px; }
  .ox-guide { font-size: 13.5px; }
  .ox-passage { padding: 13px 14px; }
  .ox-passage__body { font-size: 14.5px; line-height: 1.75; }
  .ox-card__text { font-size: 18px; text-align: left; }
  .ox-box { padding: 14px 15px; }
}
