.tyfc {
--pink: #f65c78;
--pink-dark: #d92f58;
--blue: #5aaef4;
--blue-dark: #246da9;
--yellow: #ffd54a;
--ink: #3b241c;
--cream: #fffaf0;
width: 100%;
max-width: 920px;
margin: 24px auto;
color: var(--ink);
font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
line-height: 1.65;
}
.tyfc *, .tyfc *::before, .tyfc *::after { box-sizing: border-box; }
.tyfc button, .tyfc select { font: inherit; }
.tyfc__shell {
overflow: hidden;
border: 4px solid #ff9db0;
border-radius: 28px;
background: linear-gradient(180deg, #fffdf8 0%, #fff5f7 100%);
box-shadow: 0 12px 30px rgba(112, 62, 47, .14);
}
.tyfc__hero {
padding: 0 0 18px;
text-align: center;
background: linear-gradient(135deg, #fff2a6, #fff9dd 52%, #dff4ff);
border-bottom: 3px dashed #ffb1be;
}
.tyfc__sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.tyfc__cover {
display: block;
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: cover;
}
.tyfc__lead { margin: 16px 18px 0; font-size: 16px; font-weight: 700; }
.tyfc__body { padding: clamp(16px, 4vw, 30px); }
.tyfc__start, .tyfc__result { text-align: center; }
.tyfc__start h3, .tyfc__result h3 { margin: 0 0 12px; font-size: clamp(22px, 4vw, 30px); }
.tyfc__start p, .tyfc__result p { margin: 7px 0; }
.tyfc__start-note { color: #6b5148; }
.tyfc__select-label {
display: block;
margin: 18px auto 6px;
font-weight: 900;
}
.tyfc__select {
width: min(100%, 520px);
min-height: 52px;
padding: 9px 42px 9px 15px;
border: 3px solid #b9def9;
border-radius: 16px;
color: var(--ink);
background: #fff;
font-weight: 800;
}
.tyfc__select:focus-visible { outline: 4px solid rgba(58, 142, 217, .25); outline-offset: 3px; }
.tyfc__modes {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin: 20px auto 12px;
max-width: 620px;
}
.tyfc__btn {
min-height: 50px;
padding: 10px 18px;
border: 0;
border-radius: 999px;
cursor: pointer;
font-weight: 900;
transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.tyfc__btn:hover { transform: translateY(-2px); }
.tyfc__btn:focus-visible { outline: 4px solid rgba(58, 142, 217, .35); outline-offset: 3px; }
.tyfc__btn--primary { color: #fff; background: linear-gradient(180deg, #ff708a, var(--pink-dark)); box-shadow: 0 5px 0 #a91f42; }
.tyfc__btn--blue { color: #fff; background: linear-gradient(180deg, #6bc0ff, #318bd3); box-shadow: 0 5px 0 #1e639b; }
.tyfc__btn--good { color: #165e3d; background: #dcf8e8; border: 2px solid #64c58e; }
.tyfc__btn--again { color: #8d4420; background: #fff0d2; border: 2px solid #f0ae4a; }
.tyfc__toolbar {
display: flex;
align-items: center;
gap: 12px;
width: min(100%, 540px);
margin: 0 auto 14px;
}
.tyfc__progress-wrap { flex: 1; min-width: 0; }
.tyfc__deck-label { margin-bottom: 3px; overflow: hidden; color: var(--blue-dark); font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.tyfc__progress-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-weight: 900; font-size: 14px; }
.tyfc__progress { height: 13px; overflow: hidden; border-radius: 99px; background: #f2e7df; }
.tyfc__progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .25s ease; }
.tyfc__icon-btn { flex: 0 0 auto; width: 46px; height: 46px; padding: 0; border: 2px solid #b8ddfb; border-radius: 50%; background: #fff; cursor: pointer; font-size: 22px; }
.tyfc__card {
position: relative;
width: min(100%, 540px);
margin: 0 auto;
overflow: hidden;
border: 3px solid #ffd1d9;
border-radius: 22px;
background: #fffdf7;
box-shadow: 0 8px 20px rgba(91, 55, 43, .12);
}
.tyfc__card img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 9 / 16;
object-fit: contain;
background: #fffdf7;
}
.tyfc__badge {
position: absolute;
top: 12px;
right: 12px;
z-index: 1;
padding: 5px 12px;
border-radius: 99px;
color: #fff;
background: rgba(59, 36, 28, .84);
font-weight: 900;
font-size: 13px;
}
.tyfc__hint { width: min(100%, 650px); margin: 12px auto 0; text-align: center; font-weight: 800; color: #6b5148; }
.tyfc__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.tyfc__actions .tyfc__btn { min-width: 180px; }
.tyfc__judgement { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(620px, 100%); }
.tyfc__status { min-height: 1.6em; margin: 10px 0 0; text-align: center; font-weight: 800; color: var(--blue-dark); }
.tyfc__mascots { font-size: clamp(34px, 7vw, 62px); line-height: 1; }
.tyfc__score { margin: 18px auto; font-size: clamp(38px, 8vw, 64px); font-weight: 900; color: var(--pink-dark); line-height: 1.1; }
.tyfc__score small { display: block; margin-top: 8px; font-size: 16px; color: var(--ink); }
.tyfc__result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.tyfc__credit { margin: 20px 0 0; font-size: 13px; color: #846d64; }
.tyfc__loading, .tyfc__error { padding: 30px; text-align: center; border: 3px solid #ffd1d9; border-radius: 22px; background: #fffaf6; }
.tyfc__error { color: #9c2440; }
.tyfc [hidden] { display: none !important; }
@media (max-width: 600px) {
.tyfc { margin: 16px auto; }
.tyfc__shell { border-width: 3px; border-radius: 20px; }
.tyfc__hero { padding: 0 0 14px; }
.tyfc__lead { margin: 12px 12px 0; font-size: 15px; }
.tyfc__body { padding: 13px; }
.tyfc__modes, .tyfc__judgement { grid-template-columns: 1fr; }
.tyfc__actions .tyfc__btn, .tyfc__result-actions .tyfc__btn { width: 100%; }
.tyfc__card { border-radius: 15px; }
.tyfc__badge { top: 7px; right: 7px; padding: 3px 9px; font-size: 11px; }
.tyfc__hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
.tyfc *, .tyfc *::before, .tyfc *::after { scroll-behavior: auto !important; transition: none !important; }
}