/* 진짜 순우리말 찾기: one page of a dictionary. Thumb-index tabs on the edge,
   「1」「2」「3」 senses, a jade highlighter for the pick and red strikes for AI forgeries. */

.dict {
    position: relative;
    max-width: 600px;
    margin: 28px auto 56px;
    background: var(--paper);
    border: var(--line);
    border-radius: 6px;
    box-shadow: 5px 6px 0 var(--ink);
}
.dict-page { padding: 22px 36px 26px; }

/* Thumb index: ㄱ~ㅎ tabs sticking out of the page edge; the word's first consonant pops out. */
.thumb {
    position: absolute;
    top: 64px;
    left: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.thumb span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 33px;
    margin-top: -1.5px;
    margin-left: -1.5px;
    border: var(--line);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #F3F3F0;
    color: #8A8A84;
    font-size: 12px;
    font-weight: 800;
}
.thumb span.on { width: 38px; background: var(--jade); color: var(--ink); font-size: 14px; font-weight: 900; }

.running {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 3px double var(--ink);
    font-size: 12px;
    font-weight: 800;
}
.running span + span { color: var(--muted); }

.headword { margin: 22px 0 0; font-size: 52px; font-weight: 900; letter-spacing: -0.045em; line-height: 1.1; }
.placeholder {
    display: inline-block;
    min-width: 3em;
    border-radius: 8px;
    background: linear-gradient(90deg, #EDEDEA, #F7F7F5, #EDEDEA);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.pos { margin: 8px 0 0; font-size: 15px; font-weight: 700; }
.pos span { font-weight: 500; color: var(--muted); }

.note {
    margin: 18px 0 6px;
    padding: 10px 12px;
    background: #F3F3F0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #3E3E3A;
}

/* Senses */
.sense {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 4px;
    width: 100%;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px dashed #B9B9B3;
    background: none;
    text-align: left;
    cursor: pointer;
}
.sense:disabled { cursor: default; }
.sense:hover:not(:disabled) .sense-text { background: linear-gradient(transparent 70%, #E7E7E3 70%, #E7E7E3 92%, transparent 92%); }
.sense-no { font-size: 15px; font-weight: 900; padding-top: 2px; }
.sense-text {
    font-size: 17px;
    line-height: 1.75;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.sense-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 800; }
.sense-tags:empty { display: none; }
.sense-tags svg { flex: none; }

/* The jade highlighter: on the pick before answering, on the real sense after. */
.is-picked .sense-text,
.is-real .sense-text {
    font-weight: 700;
    background: linear-gradient(transparent 38%, var(--jade) 38%, var(--jade) 88%, transparent 88%);
}
.is-fake .sense-no { color: #6A6A64; }
.is-fake .sense-text {
    color: #6A6A64;
    text-decoration: line-through;
    text-decoration-color: var(--alarm);
    text-decoration-thickness: 2px;
}

/* Archive pages list the senses as plain items, not buttons. */
.archive-senses { list-style: none; margin: 0; padding: 0; }
.archive-senses .sense { cursor: default; }
.archive-nav { margin-top: 8px; }

.tag-ai { background: var(--alarm); color: #FFFFFF; border-radius: 4px; padding: 0 6px; }
.tag-mine { border: var(--line); border-radius: 999px; padding: 0 7px; }
.tag-plain { color: var(--muted); }
.tag-real { display: inline-flex; align-items: center; gap: 5px; }

/* Confirm, verdict, after */
.confirm { margin-top: 24px; }
.confirm .btn { width: 100%; height: 54px; font-size: 16px; }
.confirm p { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--soft); }

.verdict { margin: 18px 0 4px; border: var(--line); border-radius: 10px; overflow: hidden; }
.verdict-title { margin: 0; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 900; }
.verdict-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.verdict-stats div { padding: 10px 14px; }
.verdict-stats div + div { border-left: 1px solid #D9D9D4; }
.verdict-stats dt { font-size: 11.5px; color: var(--muted); }
.verdict-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 900; }

.after { margin-top: 22px; }
.after-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.toast { margin: 10px 0 0; font-size: 13px; font-weight: 800; text-align: center; }
.next-box { margin-top: 18px; padding: 14px; background: #F3F3F0; border-radius: 10px; font-size: 13px; color: var(--soft); }
.next-box p { margin: 0; }
.next-box .next-title { margin-bottom: 4px; font-weight: 800; color: var(--ink); }

.status { min-height: 0; margin: 14px 0 0; font-size: 14px; color: var(--soft); }
.status:empty { display: none; }
.status .btn { min-height: 40px; margin-left: 8px; padding: 0 16px; font-size: 13px; }

.folio {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 40px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--ink);
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}
.folio span:last-child { flex: none; }

@media (max-width: 680px) {
    .site-dots .site-main { background: var(--paper); }
    .dict { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
    .dict-page { padding: 18px 50px 24px 20px; }
    .thumb { top: 40px; left: auto; right: 0; align-items: flex-end; }
    .thumb span { width: 24px; margin-left: 0; border: var(--line); border-right: 0; border-radius: 8px 0 0 8px; }
    .thumb span.on { width: 34px; }
    .headword { font-size: 46px; }
    .sense { grid-template-columns: 34px minmax(0, 1fr); }
    .sense-text { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .placeholder { animation: none; }
}
