:root { color: #1e2534; background: #fffdf9; font-family: ui-rounded, "Hiragino Sans", "Yu Gothic", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(135deg, #fffdf9, #f4f8ff); }
button { font: inherit; cursor: pointer; }
.app-shell { width: min(100%, 480px); min-height: 100vh; margin: auto; padding: 18px 18px 28px; background: #fffdf9; box-shadow: 0 0 28px #30446312; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { color: #1e2534; text-decoration: none; font-weight: 900; letter-spacing: -.06em; font-size: 1.2rem; }.brand span { color: #ef7e50; }
nav { display: flex; gap: 3px; }.nav-button, .text-button { border: 0; color: #39435a; background: transparent; padding: 8px; font-size: .82rem; font-weight: 700; }
#app { min-height: 590px; }.loading, .error { padding: 100px 0; text-align: center; color: #657084; }.error { color: #b44d4d; }
.hero, .pack-screen, .results, .feedback, .challenge { padding: 62px 0 24px; text-align: center; }.hero.compact { padding-top: 74px; }
.eyebrow, .question-label { color: #e4774c; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }.hero h1, .pack-screen h1, .results h1, .feedback > h1 { margin: 8px 0 14px; font-size: clamp(1.85rem, 9vw, 2.65rem); line-height: 1.25; letter-spacing: -.06em; }.hero > p:not(.eyebrow):not(.hint) { max-width: 330px; margin: 0 auto 26px; color: #586277; line-height: 1.8; font-size: .93rem; }
.pack-button { position: relative; display: block; width: 230px; height: 185px; margin: 28px auto 18px; border: 0; border-radius: 19px; color: white; background: linear-gradient(135deg, #ee8053 0 49%, #e26d45 50%); box-shadow: 0 12px 0 #b75238, 0 20px 27px #c65d373d; transform: rotate(-2deg); overflow: hidden; }.pack-button::after { content: "FP 3級"; position: absolute; inset: 25px 0 auto; font-size: .75rem; opacity: .8; letter-spacing: .25em; }.pack-button span { display: block; margin-top: 72px; font-weight: 900; font-size: 1.36rem; }.pack-button small { display: block; margin-top: 8px; opacity: .8; }.pack-button:active { transform: translateY(5px) rotate(-2deg); box-shadow: 0 7px 0 #b75238; }.tearing { animation: tear .42s ease-in forwards; }
.hint { color: #8590a3; font-size: .76rem; }.progress { font-size: .84rem; color: #687286; }
.card-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 28px 0 18px; }.mini-card { min-width: 0; height: 128px; border: 0; border-radius: 11px; box-shadow: 0 5px 12px #26374a20; padding: 8px 4px; word-break: break-all; font-size: .72rem; font-weight: 800; }.card-back { color: #ffeccd; background: repeating-linear-gradient(135deg, #303e62, #303e62 6px, #37466f 6px, #37466f 12px); }.card-back span { display: grid; place-items: center; height: 100%; border: 1px solid #ffe1a8; border-radius: 7px; font-family: Georgia, serif; font-size: 1.2rem; }.mini-card.captured { color: #253047; }.mini-card.escaped { background: #e9eaf0; color: #7e8390; transform: rotate(8deg); }
.challenge { padding-top: 28px; }.featured-card { position: relative; min-height: 180px; padding: 32px 22px 16px; border-radius: 20px; text-align: left; box-shadow: 0 11px 23px #2b405127; overflow: hidden; }.featured-card h1 { margin: 38px 0 6px; font-size: 1.9rem; letter-spacing: -.05em; }.featured-card p { margin: 0; font-size: .8rem; opacity: .75; }.card-rarity, .card-field { position: absolute; top: 17px; font-size: .72rem; font-weight: 800; }.card-rarity { left: 20px; }.card-field { right: 20px; }.rarity-gold { color: #55430b; background: linear-gradient(115deg, #edc84d, #fff2a8 42%, #e0b131 57%, #f8df71); background-size: 220% 100%; animation: gleam 5s linear infinite; }.rarity-purple { color: #fff; background: linear-gradient(135deg, #703d96, #a867c2); }.rarity-blue { color: #fff; background: linear-gradient(135deg, #237ca6, #63aed1); }.rarity-plain { color: #424957; background: linear-gradient(135deg, #edf0f2, #fff); }
.question-box { margin-top: 18px; padding: 21px 18px; border: 1px solid #e5e5e6; border-radius: 17px; text-align: left; background: white; box-shadow: 0 5px 16px #283b4e0b; }.question-label { margin: 0 0 8px; }.stem { margin: 0; line-height: 1.75; font-size: .94rem; }.law-note { margin: 12px 0 0; padding: 9px; border-radius: 8px; color: #725c25; background: #fff7d9; font-size: .79rem; line-height: 1.55; }.answers { display: grid; gap: 8px; margin-top: 19px; }.answers button { width: 100%; border: 1px solid #d9dfea; border-radius: 10px; padding: 12px; color: #29344a; text-align: left; background: #fff; font-weight: 700; }.answers button:hover { border-color: #ef8052; background: #fff9f2; }.source { margin: 15px 0 0; color: #7a8291; font-size: .65rem; line-height: 1.5; }
.feedback { padding-top: 38px; }.feedback .featured-card { min-height: 128px; text-align: center; }.feedback .featured-card h1 { margin-top: 39px; }.featured-card.captured { animation: collect .58s cubic-bezier(.2,.8,.25,1) both; }.featured-card.escaped { animation: escape .55s ease-in forwards; }.feedback > p { color: #59657a; }.explanation { margin: 18px 0; padding: 17px; border-radius: 13px; color: #434d5e; background: #f2f5f8; text-align: left; font-size: .87rem; line-height: 1.7; }.explanation p { margin: 0 0 9px; }.primary-button, .secondary-button { border-radius: 12px; padding: 13px 19px; font-weight: 800; }.primary-button { border: 0; color: white; background: #e8784e; box-shadow: 0 4px 0 #bd593c; }.secondary-button { border: 1px solid #d7dce5; color: #3f4a5e; background: white; }.button-row { display: flex; justify-content: center; gap: 9px; }.next-pack { margin: 28px 0 8px; color: #718096; font-size: .8rem; line-height: 1.8; }.next-pack strong { color: #34435a; letter-spacing: .1em; font-size: 1.2rem; }.copy-status { min-height: 1.3em; color: #5c7860; font-size: .78rem; }.share-preview { margin: 20px 0; padding: 17px; border-radius: 13px; color: #313b4e; background: #f1f3f6; white-space: pre-wrap; text-align: left; font: .83rem/1.75 ui-monospace, monospace; }
.dex { padding-top: 27px; }.dex > h1 { margin: 5px 0 26px; letter-spacing: -.05em; }.dex > h1 span { color: #e7774d; font-size: 1rem; }.dex-field { margin-bottom: 28px; }.dex-field h2 { margin: 0 0 10px; color: #414c61; font-size: .88rem; }.dex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }.dex-card { aspect-ratio: .72; border: 0; border-radius: 10px; padding: 6px; box-shadow: 0 4px 10px #26374a19; font-size: .66rem; font-weight: 800; word-break: break-all; }.dex-card.unknown { display: grid; place-items: center; color: #a1a6ad; background: #e6e7e8; box-shadow: none; font-size: 1.25rem; }.detail { padding-top: 16px; }.back { padding-left: 0; }.card-back-detail { margin: 10px 0 20px; }.detail-content { color: #3c4658; line-height: 1.75; font-size: .88rem; }.detail-content h2 { margin: 26px 0 9px; color: #253047; font-size: 1rem; }.detail-content p { margin: 8px 0; }.detail-content table { width: 100%; border-collapse: collapse; font-size: .75rem; background: white; }.detail-content th, .detail-content td { border: 1px solid #dce0e4; padding: 7px; text-align: left; vertical-align: top; }.detail-content th { background: #f3f5f7; }.detail-content ul { padding-left: 20px; }.detail-content li { margin-bottom: 7px; }
footer { margin-top: 20px; padding: 20px 0 2px; border-top: 1px solid #e3e4e5; color: #6d7788; font-size: .67rem; line-height: 1.7; } footer p { margin: 4px 0; } footer strong { color: #424d5d; }
@keyframes tear { to { opacity: 0; transform: scaleX(.05) rotate(-2deg); } } @keyframes gleam { to { background-position: -220% 0; } } @keyframes collect { 60% { transform: translateY(-16px) scale(1.04); } to { transform: translate(130px, -45px) scale(.38); opacity: .18; } } @keyframes escape { to { opacity: 0; transform: translate(90%, -20%) rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
