.tier-page {
    --tier-ink: #483c3a;
    --tier-muted: #7e6c68;
    --tier-line: #f1ddd2;
    --tier-coral: var(--kawaii-pink-600, #db5a47);
    --tier-blue: var(--kawaii-blue-600, #0284c7);
    color: var(--tier-ink);
}
.tier-page [hidden], .tier-toast[hidden] { display: none !important; }
.tier-page button { -webkit-tap-highlight-color: transparent; }
.tier-page button:focus-visible, .tier-page a:focus-visible { outline: 3px solid var(--tier-blue); outline-offset: 4px; }
.tier-page button:disabled { cursor: default; opacity: .45; }
.tier-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 9% 30%, #ffe5d8, transparent 48%), radial-gradient(ellipse at 90% 90%, #dcf3ff, transparent 48%), #fffcfa; border-bottom: 1px solid #f3e0d5; }
.tools-breadcrumb { position: relative; z-index: 1; max-width: 1210px; margin: auto; padding: 20px 28px 0; color: #88756d; font-size: 12px; }
.tools-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: baseline; }
.tools-breadcrumb li { display: inline-flex; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.tools-breadcrumb li[aria-current] { color: #8e523e; font-weight: 650; }
.tools-breadcrumb li > span:first-child { color: #c6a694; }
.tools-breadcrumb a:hover { color: var(--tier-coral); }
.tier-hero-inner { position: relative; max-width: 1100px; margin: auto; padding: 28px 24px 35px; text-align: center; }
.tier-eyebrow { display: inline-block; padding: 6px 12px; border: 1px solid #f4cbb9; border-radius: 999px; background: #ffffffb8; color: #a74a35; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.tier-hero h1 { margin: 15px auto 13px; max-width: 950px; font-size: clamp(31px,4vw,46px); font-weight: 900; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.tier-subtitle { max-width: 680px; margin: auto; color: var(--tier-muted); font-size: 14px; line-height: 1.85; }
.tier-steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; margin-top: 22px; color: #806a60; font-size: 11px; font-weight: 650; }
.tier-steps li { display: inline-flex; align-items: center; gap: 7px; }
.tier-steps li > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #f0c9b5; border-radius: 50%; color: #b35d40; background: #fffaf5; font-size: 10px; font-weight: 800; }
.tier-steps li:nth-child(2) > span { color: #087aa8; border-color: #bae1f3; background: #f0faff; }
.tier-doodle { position: absolute; top: 57px; pointer-events: none; font-size: 39px; line-height: 1; }
.tier-doodle-left { left: 3%; color: #f1b39d; transform: rotate(-15deg); }
.tier-doodle-right { right: 4%; color: #a1d8ed; transform: rotate(12deg); }
.tier-stage { padding: 27px 24px 50px; background: radial-gradient(ellipse at 100% 100%,#eaf6ff,transparent 60%), #fffaf7; }
.tier-wrap { max-width: 1160px; margin: auto; }
.tier-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.tier-toolbar > p { color: var(--tier-muted); font-size: 12px; line-height: 1.7; }
.tier-toolbar > p i { color: #df8768; margin-right: 7px; }
.tier-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 3px 5px; border-radius: 8px; color: #8e695b; font-size: 12px; font-weight: 650; transition: color .15s, background .15s; }
.tier-text-button:hover:enabled { color: var(--tier-coral); background: #fff0e8; }
.tier-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: start; gap: 26px; }
.tier-paper { min-width: 0; border: 1px solid var(--tier-line); border-radius: 26px; background: #ffffffed; box-shadow: 0 8px 28px #b46e4f0d; }
.tier-play { padding: 25px 28px 18px; background: radial-gradient(ellipse at 50% 27%,#fff4ec,transparent 49%),white; }
.tier-progress-heading { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.tier-kicker { color: #b16b51; font-size: 10px; letter-spacing: .035em; font-weight: 800; }
#tierCounter { flex-shrink: 0; color: #99847a; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tier-progress-track { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 10px; background: #f7e9e1; }
.tier-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--kawaii-gradient-sunset); transition: width .3s; }
.tier-character-stage { position: relative; display: flex; align-items: center; justify-content: center; height: 195px; margin-top: 17px; }
.tier-character-stage::before { position: absolute; content: ''; width: 150px; height: 150px; border: 1px solid #f4d6c7; border-radius: 45% 55% 57% 43%; background: #fff0e6; transform: rotate(12deg); }
.tier-character-stage img { position: relative; width: 176px; height: 176px; border: 6px solid white; border-radius: 27px; object-fit: contain; background: white; box-shadow: 0 9px 24px #b46e4f15; transform: rotate(-3deg); }
.tier-character-doodle { position: absolute; z-index: 1; right: 16px; top: 9px; color: #e6aa8b; font-size: 29px; transform: rotate(15deg); }
.tier-play h2 { margin-top: 12px; text-align: center; font-size: 25px; font-weight: 850; line-height: 1.3; outline: none; }
.tier-question { margin: 8px 0 17px; color: var(--tier-muted); text-align: center; font-size: 12px; line-height: 1.6; }
.tier-choices { display: grid; gap: 8px; }
.tier-choice { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 11px 14px; border: 1px solid transparent; border-radius: 13px; text-align: left; box-shadow: 0 2px 5px #55302203; transition: transform .15s, box-shadow .15s; }
.tier-choice strong { flex-shrink: 0; width: 24px; font-size: 22px; font-weight: 900; line-height: 1; }
.tier-choice span { font-size: 12px; font-weight: 750; line-height: 1.5; }
.tier-choice i { margin-left: auto; flex-shrink: 0; opacity: .5; font-size: 13px; }
.tier-choice:hover, .tier-choice[aria-pressed="true"] { transform: translateX(3px); box-shadow: inset 0 0 0 1px currentColor; }
.tier-color-S { color: #a8422b; background: #ffdbcf; }
.tier-color-A { color: #885f13; background: #ffefbf; }
.tier-color-B { color: #03658a; background: #dff2ff; }
.tier-color-C { color: #65538c; background: #eceaff; }
.tier-play-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 13px; }
.tier-key-hint { margin-top: 5px; color: #9c8b83; font-size: 10px; text-align: center; line-height: 1.7; }
.tier-board-panel { padding: 25px 25px 21px; }
.tier-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.tier-board-heading .tier-kicker { color: #5593a7; font-size: 9px; letter-spacing: .09em; }
.tier-board-heading h2 { margin-top: 5px; font-size: 23px; font-weight: 850; line-height: 1.35; letter-spacing: -.025em; }
.tier-count-pill { flex-shrink: 0; padding: 5px 9px; border: 1px solid #d8edf7; border-radius: 999px; background: #f0f9ff; color: #4b8195; font-size: 10px; font-weight: 700; white-space: nowrap; }
.tier-board { overflow: hidden; border: 1px solid #eeded6; border-radius: 16px; background: #fffdfb; }
.tier-row { display: flex; min-height: 91px; border-bottom: 1px solid #f0e4de; }
.tier-row:last-child { border-bottom: 0; }
.tier-row-label { display: flex; flex: 0 0 94px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 12px 7px; text-align: center; }
.tier-row-label strong { font-size: 28px; font-weight: 900; line-height: 1; }
.tier-row-label > span { font-size: 9px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.tier-row-items { display: flex; flex: 1; flex-wrap: wrap; align-items: center; align-content: center; gap: 7px; min-width: 0; padding: 9px 10px; transition: background .15s; }
.tier-row.is-dragover .tier-row-items { background: #eef9ff; }
.tier-empty { display: block; width: 100%; color: #aa958a; font-size: 10px; line-height: 1.6; text-align: center; }
.tier-mini { position: relative; width: 58px; padding: 3px; border: 1px solid #f0dfd5; border-radius: 12px; background: white; transition: transform .15s, border-color .15s; }
.tier-mini:hover { transform: translateY(-3px); border-color: #e4a084; }
.tier-mini img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.tier-board-hint { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 15px 0 19px; color: #968278; font-size: 10px; line-height: 1.7; text-align: center; }
.tier-board-hint i { color: #dc977c; }
.tier-board-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tier-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 11px 14px; border: 1px solid transparent; border-radius: 13px; font-size: 12px; font-weight: 750; transition: transform .15s, box-shadow .15s; }
.tier-button:hover:enabled { transform: translateY(-2px); }
.tier-button-primary { background: var(--kawaii-gradient-pink); color: white; box-shadow: 0 4px 12px #d8755326; }
.tier-button-primary:hover:enabled { box-shadow: 0 6px 18px #d875533d; }
.tier-button-secondary { border-color: #c7e8f6; background: #eff9ff; color: #0879a5; }
.tier-button-secondary:hover:enabled { background: #e0f2fe; }
.tier-save-note { margin-top: 13px; color: #9b867b; font-size: 10px; text-align: center; line-height: 1.7; }
.tier-roster { margin-top: 27px; padding: 23px 26px 25px; }
.tier-roster-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tier-roster-heading h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.tier-roster-heading > span { flex-shrink: 0; color: #9a8073; font-size: 11px; }
.tier-roster > p { margin-top: 7px; font-size: 11px; color: var(--tier-muted); line-height: 1.7; }
.tier-roster-items { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 19px 14px; margin-top: 23px; }
.tier-roster-friend { position: relative; min-width: 0; text-align: center; }
.tier-roster-photo { display: block; position: relative; width: 100%; aspect-ratio: 1; padding: 5px; border: 1px solid #efdfd6; border-radius: 18px; background: #fff; transition: border-color .15s, transform .15s; }
.tier-roster-friend img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.tier-roster-friend:hover .tier-roster-photo { transform: translateY(-3px); border-color: #e4a084; }
.tier-roster-friend.is-current .tier-roster-photo { border-color: #e49a77; box-shadow: 0 0 0 3px #ffede0; }
.tier-roster-name { display: block; margin-top: 8px; color: #78645b; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.tier-roster-rank { display: grid; position: absolute; top: -5px; right: -5px; place-items: center; width: 24px; height: 24px; border: 2px solid white; border-radius: 50%; box-shadow: 0 2px 7px #6b463318; font-size: 11px; font-weight: 850; }
.tier-roster-skipped { background: #f0e9e3; color: #9a8073; }
.tier-footer-note { margin-top: 25px; color: #a68a7c; font-size: 11px; text-align: center; line-height: 1.8; }
.tier-footer-note i { margin-right: 5px; color: #e49b7e; }
.tier-finish { min-height: 550px; padding: 48px 30px; text-align: center; background: radial-gradient(ellipse at 50% 22%,#fff1e6,transparent 60%),white; }
.tier-finish-heart { display: block; color: #ea997d; font-size: 70px; line-height: 1.2; }
.tier-finish h2 { margin: 19px 0 13px; font-size: 28px; font-weight: 850; line-height: 1.35; outline: none; }
.tier-finish p { color: var(--tier-muted); font-size: 13px; line-height: 1.85; }
.tier-finish-friends { display: flex; justify-content: center; gap: 10px; margin: 30px 0; }
.tier-finish-friends img { width: 70px; height: 70px; border: 4px solid white; border-radius: 50%; box-shadow: 0 4px 15px #e5a58324; object-fit: cover; }
.tier-finish .tier-text-button { margin-top: 12px; }
.tier-toast { position: fixed; z-index: 110; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 13px 20px; border: 1px solid #ffffff24; border-radius: 15px; background: #614638f2; box-shadow: 0 5px 23px #6b463326; color: #fff9f5; font-size: 13px; line-height: 1.65; text-align: center; }
.tier-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tier-noscript { padding: 20px; text-align: center; }
@media(max-width:1000px) {
    .tier-grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 20px; }
    .tier-play, .tier-board-panel { padding: 22px 18px 18px; }
    .tier-row-label { flex-basis: 75px; }
    .tier-row-items { gap: 5px; padding: 7px; }
    .tier-roster-items { grid-template-columns: repeat(8,minmax(0,1fr)); }
    .tier-board-heading h2 { font-size: 21px; }
}
@media(max-width:700px) {
    .tools-breadcrumb { padding: 17px 18px 0; font-size: 11px; }
    .tier-hero-inner { padding: 24px 19px 27px; }
    .tier-eyebrow { font-size: 10px; }
    .tier-hero h1 { font-size: 30px; margin-top: 13px; }
    .tier-subtitle { font-size: 13px; }
    .tier-doodle { display: none; }
    .tier-steps { gap: 9px 15px; font-size: 10px; margin-top: 18px; }
    .tier-steps li > span { width: 20px; height: 20px; }
    .tier-stage { padding: 20px 14px 34px; }
    .tier-toolbar { gap: 10px; margin-bottom: 17px; align-items: flex-start; }
    .tier-toolbar > p { font-size: 11px; padding-top: 6px; }
    .tier-toolbar > button { flex-shrink: 0; font-size: 11px; }
    .tier-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .tier-play { padding: 23px 23px 17px; }
    .tier-character-stage { height: 177px; margin-top: 15px; }
    .tier-character-stage img { width: 160px; height: 160px; }
    .tier-play h2 { font-size: 25px; }
    .tier-question { margin-bottom: 16px; }
    .tier-choice { min-height: 49px; padding: 12px 14px; }
    .tier-key-hint { display: none; }
    .tier-board-panel { padding: 23px 17px 19px; }
    .tier-row-label { flex-basis: 82px; }
    .tier-row { min-height: 86px; }
    .tier-roster { padding: 20px 16px 23px; }
    .tier-roster-items { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 17px 10px; }
    .tier-roster-photo { padding: 3px; border-radius: 13px; }
    .tier-roster-friend img { border-radius: 9px; }
    .tier-roster-name { font-size: 9px; }
    .tier-roster-heading h2 { font-size: 20px; }
    .tier-roster-heading > span { font-size: 10px; }
    .tier-finish { min-height: 0; padding: 32px 23px; }
    .tier-footer-note { margin-top: 22px; font-size: 10px; }
}
@media(max-width:370px) { .tier-roster-items { grid-template-columns: repeat(4,minmax(0,1fr)); } .tier-steps { column-gap: 9px; } .tier-count-pill { white-space: normal; text-align: center; } }
@media(prefers-reduced-motion:reduce) { .tier-page *, .tier-toast { transition: none !important; scroll-behavior: auto !important; } }
