/* Generated entry/deferred font ranges: scripts/build-display-font.py */
@font-face { font-family: 'Catcat Display'; src: url('fonts/catcat-display-entry.woff2?v=ddc9731bebe86c1a3756') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+20-7E,U+B7,U+2026,U+4E00-4E01,U+4E24,U+4E2A,U+4E2D,U+4E4C,U+4ECA,U+4F19-4F1A,U+4F34,U+4F60,U+4FDD,U+5170,U+5173,U+518C,U+51FA,U+5377,U+53EA,U+53EF,U+53F7,U+540E,U+54AA,U+5566,U+559C,U+55B5,U+56DE,U+56E2,U+56FE,U+5728,U+58A8,U+58F0,U+5929,U+5976,U+597D,U+5B58,U+5B83,U+5B8C,U+5BB6,U+5C0F,U+5C71,U+5DF2,U+5E03,U+5F55,U+603B,U+6162,U+6210-6211,U+6218,U+6311,U+6362,U+63A5,U+63ED,U+64A4,U+6536,U+6591,U+65B0,U+65E5,U+660E,U+661F,U+6653,U+6700,U+6708,U+674E-674F,U+6765,U+677E,U+679C,U+67A3,U+67DA,U+67E5,U+6817,U+6843,U+68C9,U+6A58,U+6B21-6B22,U+6BCF,U+6CE1,U+6CE8,U+6D17,U+6D77,U+6D88,U+6E38,U+6EE1,U+6F2B,U+70B9,U+724C,U+732B,U+738B,U+73C0,U+73CD,U+73E0,U+7425,U+767B,U+7684,U+76D0,U+76D6,U+76F8,U+770B,U+7720,U+798F,U+79FB,U+7A9D,U+7AF9,U+7B2C,U+7B49,U+7C73,U+7CD6,U+7CEF,U+7EE7,U+7EED,U+7EF5,U+7F8E,U+8299,U+829D,U+82B1,U+82BD,U+8393,U+84DD,U+85CF,U+871C,U+89C1,U+8C01,U+8C46,U+8D26,U+8FDE,U+901A,U+9047,U+90AE,U+91CD,U+9274,U+94C3,U+94F6,U+9500,U+966A,U+96E8,U+96EA,U+9732,U+997C,U+9EA6,U+9EBB,U+9F99,U+FF0C,U+FF0F,U+FF1F; }
@font-face { font-family: 'Catcat Display'; src: url('fonts/catcat-display.woff2?v=ddc9731bebe86c1a3756') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+2013-2014,U+3001-3002,U+4E09-4E0B,U+4E0D-4E0E,U+4E1C-4E1D,U+4E2B,U+4E3E,U+4E45,U+4E48,U+4E4B,U+4E50,U+4E56,U+4E5F-4E60,U+4E66,U+4E70-4E71,U+4E86,U+4E8C,U+4E8E,U+4E91,U+4E94,U+4E9A,U+4EA4,U+4EAB,U+4EAE,U+4EBA,U+4EC0,U+4ECD-4ECE,U+4ED6,U+4EE5,U+4EEC,U+4EF0,U+4F0F,U+4F20,U+4F2F,U+4F38,U+4F4D-4F4F,U+4F53,U+4F59,U+4F5C,U+4F7F,U+4FA7,U+4FC4,U+4FE1,U+4FEE,U+5012,U+5047,U+504F,U+505A,U+505C,U+5076-5077,U+50CF,U+513F,U+5148-5149,U+514B,U+515C,U+5165,U+5168,U+516C,U+5171,U+5176-5178,U+5185,U+518D,U+5192,U+51B3,U+51B7,U+51C0,U+51C6,U+51D1,U+51EF,U+5206-5207,U+5212,U+521A-521B,U+521D,U+5229,U+522B,U+5230,U+523A,U+524D,U+5269,U+526F,U+529B,U+529F-52A1,U+52A8,U+52AA,U+52B1,U+52BF,U+5305,U+5339-533A,U+5348,U+534A,U+534E,U+535C,U+5361,U+5367,U+5374,U+5385,U+538B,U+539A,U+539F,U+53BB,U+53C8,U+53CA,U+53CC,U+53D1,U+53D6,U+53E0,U+53E3,U+53E6,U+53ED,U+53F0,U+53F3,U+53F6,U+53F8,U+53FC,U+5404,U+5408,U+540C-540D,U+5410-5411,U+5417,U+5427,U+542C,U+542F,U+5440,U+5462,U+547C,U+548C,U+54A6,U+54C8,U+54E5,U+54EA,U+556A,U+5587,U+559D,U+55B7,U+561B,U+5634,U+565C,U+568F,U+56DB,U+56E0,U+56ED,U+56F0,U+56F4,U+56FD,U+5706,U+5708,U+571F,U+5730,U+573A,U+5747,U+5750,U+5757,U+5760,U+57AB,U+57C3,U+57CB,U+585E,U+5904,U+5907,U+590D,U+5916,U+591A,U+5927,U+592A,U+5931,U+5934,U+5947,U+5956-5957,U+59CB,U+5A01,U+5A07,U+5B50,U+5B57,U+5B5F,U+5B89,U+5B9A,U+5B9D,U+5BA2,U+5BA4,U+5BB3,U+5BB9,U+5BBD,U+5BC6,U+5BF9,U+5BFC,U+5C01,U+5C11,U+5C14,U+5C16,U+5C1A,U+5C1D,U+5C31,U+5C3C,U+5C3E,U+5C40-5C42,U+5C4B,U+5DE6-5DE7,U+5DEE,U+5DF1,U+5DF4,U+5DFE,U+5E26,U+5E3D,U+5E72,U+5E76,U+5E78,U+5E8F,U+5E94,U+5EA6,U+5EFA,U+5F00,U+5F02,U+5F0F,U+5F13,U+5F20,U+5F2F,U+5F39,U+5F71,U+5F80,U+5F85,U+5F88,U+5F97,U+5FAE,U+5FB7,U+5FC3,U+5FCD,U+5FD9,U+5FFD,U+6000,U+6062,U+6084,U+6089,U+60A0,U+60C5,U+60EF,U+60F3,U+610F,U+613F,U+61A9,U+61D2,U+620F,U+6216,U+6234,U+623F,U+6247,U+624B,U+624D,U+6251,U+6253,U+6258,U+626C,U+6276,U+627E,U+628A,U+6296,U+62AB-62AC,U+62B1,U+62C9,U+62CD,U+62DB,U+62E6,U+62E8-62E9,U+62FF,U+6302,U+6309,U+630E,U+6320,U+6324,U+632A,U+6367,U+6389,U+63A2,U+63A8,U+63C9,U+6401,U+642D,U+644A,U+6478,U+6492,U+64CD,U+64E6,U+6539,U+653E,U+6548,U+6563,U+6570,U+6574,U+6587,U+65AF,U+65B9,U+65C1,U+65E0,U+65E7,U+65F6,U+662F,U+6643,U+6652,U+665A,U+6676,U+6682,U+6696,U+66B9,U+66F4,U+66FC,U+6709,U+670D,U+671B,U+671D,U+671F,U+672A,U+672C,U+6735,U+673A,U+675F,U+6761,U+677F,U+6795,U+6797,U+67D4,U+6821,U+6837,U+683C,U+684C,U+6863,U+68B3,U+68D5,U+68EE,U+695A,U+697C,U+69DF,U+6A90,U+6B20,U+6B47,U+6B63,U+6B65,U+6B6A,U+6BB5,U+6BCD,U+6BD4,U+6BDB,U+6BE1,U+6C34,U+6C42,U+6C89,U+6CA1,U+6CB9,U+6CD5,U+6CE2,U+6D0B,U+6D3C,U+6D45,U+6DE1,U+6DF1,U+6E05,U+6E10,U+6E29,U+6E7F,U+6E90,U+6E9C,U+6ED1,U+6EDA,U+7070,U+7075,U+70ED,U+7126,U+7136,U+719F,U+71D5,U+722A,U+7231,U+7247-7248,U+7259,U+7279,U+72F8,U+730E,U+73A9,U+73AB,U+73B0,U+73B3,U+73ED,U+7403,U+7406,U+7441,U+7470,U+74F6,U+751F,U+7528-7529,U+7530-7531,U+7538,U+7559,U+75D2,U+7626,U+767D,U+76AE,U+76D2,U+76D8,U+76EF,U+76F2,U+76F4,U+76F9,U+771F,U+7728,U+772F,U+773C,U+7740,U+775B,U+7761,U+7784,U+778C,U+77E5,U+77ED,U+7801,U+786E,U+788E,U+7897,U+78B0,U+79CD,U+79F0,U+7A0D,U+7A7A,U+7A7F,U+7A97,U+7ACB,U+7AD6,U+7AD9,U+7AEF,U+7B11,U+7B26,U+7B52,U+7B97,U+7BB1,U+7BC7,U+7C07,U+7C89,U+7C98,U+7CBE,U+7CCA,U+7CD5,U+7CFB,U+7D27,U+7D2B,U+7E41,U+7EA2,U+7EAF,U+7EB8-7EB9,U+7EBF,U+7EC4,U+7EC6,U+7EC8,U+7ECF,U+7ED2-7ED3,U+7ED5,U+7ED9,U+7EDF,U+7EE3,U+7EE9,U+7EFC,U+7EFF-7F00,U+7F05,U+7F1D,U+7F29,U+7F3A,U+7F57,U+7F6E,U+7F9E,U+7FBD,U+7FD8,U+7FFB,U+8033,U+806A,U+8089,U+809A,U+80A1,U+80A9,U+80AF,U+80CC,U+80E1,U+80F8,U+80FD,U+8111,U+8116,U+811A,U+8138,U+8170,U+817F-8180,U+81EA,U+81F3-81F4,U+820C-820D,U+8212,U+8214,U+8272,U+82CF,U+82F1,U+8336,U+8338,U+8349,U+8377,U+83B7,U+83C7,U+83CA,U+841D,U+843D,U+84EC,U+8584,U+8611,U+864E,U+8737,U+8774,U+8776,U+884C,U+8868,U+888B,U+88AB,U+88C5,U+891B,U+8934,U+897F,U+8981,U+89D2,U+8BA1,U+8BA4,U+8BA9,U+8BB0,U+8BB8,U+8BBE,U+8BD5,U+8BDD,U+8BEF,U+8BF4,U+8BF7,U+8BFB,U+8C31,U+8C79,U+8D1D,U+8D25,U+8D34,U+8D70,U+8D77,U+8D8A,U+8DB4,U+8DD1,U+8DDF,U+8DE8,U+8DEF,U+8DF3,U+8E29,U+8E2E,U+8E66,U+8E6C-8E6D,U+8E72,U+8EAB,U+8EB2,U+8EBA,U+8F6C,U+8F6F,U+8F7B,U+8F7D,U+8F83,U+8FB9,U+8FC7,U+8FCE,U+8FD0-8FD1,U+8FD4,U+8FD8-8FD9,U+8FDB-8FDC,U+8FF7,U+8FFD,U+9000-9001,U+9009,U+900F,U+9017,U+9053,U+906E,U+9080,U+90A3,U+90E8,U+90FD,U+914D,U+9177,U+9192,U+91CC,U+91D1,U+949F,U+94A9,U+94BB,U+94DB-94DC,U+94FA,U+957F,U+95E8,U+95ED,U+95EF,U+95F4,U+95FB,U+9601,U+9633,U+963F,U+9664,U+968F,U+96C6,U+96CF,U+96FE,U+9700,U+9759,U+9760,U+9762,U+97F3,U+9875-9876,U+9879-987A,U+9884,U+9886,U+988A,U+9891,U+9897,U+989D,U+9970,U+9996,U+9999,U+9A8C,U+9AD8,U+9C7C,U+9E45,U+9EC4,U+9ECF,U+9ED1,U+9F3B,U+9F50,U+FF01,U+FF1A-FF1B,U+FF5E; }
@font-face { font-family: 'Fishguard UI'; src: url('fonts/fishguard-ui-entry.woff2?v=ddc9731bebe86c1a3756') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+20-7E,U+B7,U+2026,U+4E00-4E01,U+4E24,U+4E2A,U+4E2D,U+4E4C,U+4ECA,U+4F19-4F1A,U+4F34,U+4F60,U+4FDD,U+5170,U+5173,U+518C,U+51FA,U+5377,U+53EA,U+53EF,U+53F7,U+540E,U+54AA,U+5566,U+559C,U+55B5,U+56DE,U+56E2,U+56FE,U+5728,U+58A8,U+58F0,U+5929,U+5976,U+597D,U+5B58,U+5B83,U+5B8C,U+5BB6,U+5C0F,U+5C71,U+5DF2,U+5E03,U+5F55,U+603B,U+6162,U+6210-6211,U+6218,U+6311,U+6362,U+63A5,U+63ED,U+64A4,U+6536,U+6591,U+65B0,U+65E5,U+660E,U+661F,U+6653,U+6700,U+6708,U+674E-674F,U+6765,U+677E,U+679C,U+67A3,U+67DA,U+67E5,U+6817,U+6843,U+68C9,U+6A58,U+6B21-6B22,U+6BCF,U+6CE1,U+6CE8,U+6D17,U+6D77,U+6D88,U+6E38,U+6EE1,U+6F2B,U+70B9,U+724C,U+732B,U+738B,U+73C0,U+73CD,U+73E0,U+7425,U+767B,U+7684,U+76D0,U+76D6,U+76F8,U+770B,U+7720,U+798F,U+79FB,U+7A9D,U+7AF9,U+7B2C,U+7B49,U+7C73,U+7CD6,U+7CEF,U+7EE7,U+7EED,U+7EF5,U+7F8E,U+8299,U+829D,U+82B1,U+82BD,U+8393,U+84DD,U+85CF,U+871C,U+89C1,U+8C01,U+8C46,U+8D26,U+8FDE,U+901A,U+9047,U+90AE,U+91CD,U+9274,U+94C3,U+94F6,U+9500,U+966A,U+96E8,U+96EA,U+9732,U+997C,U+9EA6,U+9EBB,U+9F99,U+FF0C,U+FF0F,U+FF1F; }
@font-face { font-family: 'Fishguard UI'; src: url('fonts/fishguard-ui.woff2?v=ddc9731bebe86c1a3756') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+2013-2014,U+3001-3002,U+4E09-4E0B,U+4E0D-4E0E,U+4E1C-4E1D,U+4E2B,U+4E3E,U+4E45,U+4E48,U+4E4B,U+4E50,U+4E56,U+4E5F-4E60,U+4E66,U+4E70-4E71,U+4E86,U+4E8C,U+4E8E,U+4E91,U+4E94,U+4E9A,U+4EA4,U+4EAB,U+4EAE,U+4EBA,U+4EC0,U+4ECD-4ECE,U+4ED6,U+4EE5,U+4EEC,U+4EF0,U+4F0F,U+4F20,U+4F2F,U+4F38,U+4F4D-4F4F,U+4F53,U+4F59,U+4F5C,U+4F7F,U+4FA7,U+4FC4,U+4FE1,U+4FEE,U+5012,U+5047,U+504F,U+505A,U+505C,U+5076-5077,U+50CF,U+513F,U+5148-5149,U+514B,U+515C,U+5165,U+5168,U+516C,U+5171,U+5176-5178,U+5185,U+518D,U+5192,U+51B3,U+51B7,U+51C0,U+51C6,U+51D1,U+51EF,U+5206-5207,U+5212,U+521A-521B,U+521D,U+5229,U+522B,U+5230,U+523A,U+524D,U+5269,U+526F,U+529B,U+529F-52A1,U+52A8,U+52AA,U+52B1,U+52BF,U+5305,U+5339-533A,U+5348,U+534A,U+534E,U+535C,U+5361,U+5367,U+5374,U+5385,U+538B,U+539A,U+539F,U+53BB,U+53C8,U+53CA,U+53CC,U+53D1,U+53D6,U+53E0,U+53E3,U+53E6,U+53ED,U+53F0,U+53F3,U+53F6,U+53F8,U+53FC,U+5404,U+5408,U+540C-540D,U+5410-5411,U+5417,U+5427,U+542C,U+542F,U+5440,U+5462,U+547C,U+548C,U+54A6,U+54C8,U+54E5,U+54EA,U+556A,U+5587,U+559D,U+55B7,U+561B,U+5634,U+565C,U+568F,U+56DB,U+56E0,U+56ED,U+56F0,U+56F4,U+56FD,U+5706,U+5708,U+571F,U+5730,U+573A,U+5747,U+5750,U+5757,U+5760,U+57AB,U+57C3,U+57CB,U+585E,U+5904,U+5907,U+590D,U+5916,U+591A,U+5927,U+592A,U+5931,U+5934,U+5947,U+5956-5957,U+59CB,U+5A01,U+5A07,U+5B50,U+5B57,U+5B5F,U+5B89,U+5B9A,U+5B9D,U+5BA2,U+5BA4,U+5BB3,U+5BB9,U+5BBD,U+5BC6,U+5BF9,U+5BFC,U+5C01,U+5C11,U+5C14,U+5C16,U+5C1A,U+5C1D,U+5C31,U+5C3C,U+5C3E,U+5C40-5C42,U+5C4B,U+5DE6-5DE7,U+5DEE,U+5DF1,U+5DF4,U+5DFE,U+5E26,U+5E3D,U+5E72,U+5E76,U+5E78,U+5E8F,U+5E94,U+5EA6,U+5EFA,U+5F00,U+5F02,U+5F0F,U+5F13,U+5F20,U+5F2F,U+5F39,U+5F71,U+5F80,U+5F85,U+5F88,U+5F97,U+5FAE,U+5FB7,U+5FC3,U+5FCD,U+5FD9,U+5FFD,U+6000,U+6062,U+6084,U+6089,U+60A0,U+60C5,U+60EF,U+60F3,U+610F,U+613F,U+61A9,U+61D2,U+620F,U+6216,U+6234,U+623F,U+6247,U+624B,U+624D,U+6251,U+6253,U+6258,U+626C,U+6276,U+627E,U+628A,U+6296,U+62AB-62AC,U+62B1,U+62C9,U+62CD,U+62DB,U+62E6,U+62E8-62E9,U+62FF,U+6302,U+6309,U+630E,U+6320,U+6324,U+632A,U+6367,U+6389,U+63A2,U+63A8,U+63C9,U+6401,U+642D,U+644A,U+6478,U+6492,U+64CD,U+64E6,U+6539,U+653E,U+6548,U+6563,U+6570,U+6574,U+6587,U+65AF,U+65B9,U+65C1,U+65E0,U+65E7,U+65F6,U+662F,U+6643,U+6652,U+665A,U+6676,U+6682,U+6696,U+66B9,U+66F4,U+66FC,U+6709,U+670D,U+671B,U+671D,U+671F,U+672A,U+672C,U+6735,U+673A,U+675F,U+6761,U+677F,U+6795,U+6797,U+67D4,U+6821,U+6837,U+683C,U+684C,U+6863,U+68B3,U+68D5,U+68EE,U+695A,U+697C,U+69DF,U+6A90,U+6B20,U+6B47,U+6B63,U+6B65,U+6B6A,U+6BB5,U+6BCD,U+6BD4,U+6BDB,U+6BE1,U+6C34,U+6C42,U+6C89,U+6CA1,U+6CB9,U+6CD5,U+6CE2,U+6D0B,U+6D3C,U+6D45,U+6DE1,U+6DF1,U+6E05,U+6E10,U+6E29,U+6E7F,U+6E90,U+6E9C,U+6ED1,U+6EDA,U+7070,U+7075,U+70ED,U+7126,U+7136,U+719F,U+71D5,U+722A,U+7231,U+7247-7248,U+7259,U+7279,U+72F8,U+730E,U+73A9,U+73AB,U+73B0,U+73B3,U+73ED,U+7403,U+7406,U+7441,U+7470,U+74F6,U+751F,U+7528-7529,U+7530-7531,U+7538,U+7559,U+75D2,U+7626,U+767D,U+76AE,U+76D2,U+76D8,U+76EF,U+76F2,U+76F4,U+76F9,U+771F,U+7728,U+772F,U+773C,U+7740,U+775B,U+7761,U+7784,U+778C,U+77E5,U+77ED,U+7801,U+786E,U+788E,U+7897,U+78B0,U+79CD,U+79F0,U+7A0D,U+7A7A,U+7A7F,U+7A97,U+7ACB,U+7AD6,U+7AD9,U+7AEF,U+7B11,U+7B26,U+7B52,U+7B97,U+7BB1,U+7BC7,U+7C07,U+7C89,U+7C98,U+7CBE,U+7CCA,U+7CD5,U+7CFB,U+7D27,U+7D2B,U+7E41,U+7EA2,U+7EAF,U+7EB8-7EB9,U+7EBF,U+7EC4,U+7EC6,U+7EC8,U+7ECF,U+7ED2-7ED3,U+7ED5,U+7ED9,U+7EDF,U+7EE3,U+7EE9,U+7EFC,U+7EFF-7F00,U+7F05,U+7F1D,U+7F29,U+7F3A,U+7F57,U+7F6E,U+7F9E,U+7FBD,U+7FD8,U+7FFB,U+8033,U+806A,U+8089,U+809A,U+80A1,U+80A9,U+80AF,U+80CC,U+80E1,U+80F8,U+80FD,U+8111,U+8116,U+811A,U+8138,U+8170,U+817F-8180,U+81EA,U+81F3-81F4,U+820C-820D,U+8212,U+8214,U+8272,U+82CF,U+82F1,U+8336,U+8338,U+8349,U+8377,U+83B7,U+83C7,U+83CA,U+841D,U+843D,U+84EC,U+8584,U+8611,U+864E,U+8737,U+8774,U+8776,U+884C,U+8868,U+888B,U+88AB,U+88C5,U+891B,U+8934,U+897F,U+8981,U+89D2,U+8BA1,U+8BA4,U+8BA9,U+8BB0,U+8BB8,U+8BBE,U+8BD5,U+8BDD,U+8BEF,U+8BF4,U+8BF7,U+8BFB,U+8C31,U+8C79,U+8D1D,U+8D25,U+8D34,U+8D70,U+8D77,U+8D8A,U+8DB4,U+8DD1,U+8DDF,U+8DE8,U+8DEF,U+8DF3,U+8E29,U+8E2E,U+8E66,U+8E6C-8E6D,U+8E72,U+8EAB,U+8EB2,U+8EBA,U+8F6C,U+8F6F,U+8F7B,U+8F7D,U+8F83,U+8FB9,U+8FC7,U+8FCE,U+8FD0-8FD1,U+8FD4,U+8FD8-8FD9,U+8FDB-8FDC,U+8FF7,U+8FFD,U+9000-9001,U+9009,U+900F,U+9017,U+9053,U+906E,U+9080,U+90A3,U+90E8,U+90FD,U+914D,U+9177,U+9192,U+91CC,U+91D1,U+949F,U+94A9,U+94BB,U+94DB-94DC,U+94FA,U+957F,U+95E8,U+95ED,U+95EF,U+95F4,U+95FB,U+9601,U+9633,U+963F,U+9664,U+968F,U+96C6,U+96CF,U+96FE,U+9700,U+9759,U+9760,U+9762,U+97F3,U+9875-9876,U+9879-987A,U+9884,U+9886,U+988A,U+9891,U+9897,U+989D,U+9970,U+9996,U+9999,U+9A8C,U+9AD8,U+9C7C,U+9E45,U+9EC4,U+9ECF,U+9ED1,U+9F3B,U+9F50,U+FF01,U+FF1A-FF1B,U+FF5E; }
@font-face { font-family: 'Fishguard Entry'; src: url('fonts/fishguard-ui-entry.woff2?v=ddc9731bebe86c1a3756') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+20-7E,U+B7,U+2026,U+4E00-4E01,U+4E24,U+4E2A,U+4E2D,U+4E4C,U+4ECA,U+4F19-4F1A,U+4F34,U+4F60,U+4FDD,U+5170,U+5173,U+518C,U+51FA,U+5377,U+53EA,U+53EF,U+53F7,U+540E,U+54AA,U+5566,U+559C,U+55B5,U+56DE,U+56E2,U+56FE,U+5728,U+58A8,U+58F0,U+5929,U+5976,U+597D,U+5B58,U+5B83,U+5B8C,U+5BB6,U+5C0F,U+5C71,U+5DF2,U+5E03,U+5F55,U+603B,U+6162,U+6210-6211,U+6218,U+6311,U+6362,U+63A5,U+63ED,U+64A4,U+6536,U+6591,U+65B0,U+65E5,U+660E,U+661F,U+6653,U+6700,U+6708,U+674E-674F,U+6765,U+677E,U+679C,U+67A3,U+67DA,U+67E5,U+6817,U+6843,U+68C9,U+6A58,U+6B21-6B22,U+6BCF,U+6CE1,U+6CE8,U+6D17,U+6D77,U+6D88,U+6E38,U+6EE1,U+6F2B,U+70B9,U+724C,U+732B,U+738B,U+73C0,U+73CD,U+73E0,U+7425,U+767B,U+7684,U+76D0,U+76D6,U+76F8,U+770B,U+7720,U+798F,U+79FB,U+7A9D,U+7AF9,U+7B2C,U+7B49,U+7C73,U+7CD6,U+7CEF,U+7EE7,U+7EED,U+7EF5,U+7F8E,U+8299,U+829D,U+82B1,U+82BD,U+8393,U+84DD,U+85CF,U+871C,U+89C1,U+8C01,U+8C46,U+8D26,U+8FDE,U+901A,U+9047,U+90AE,U+91CD,U+9274,U+94C3,U+94F6,U+9500,U+966A,U+96E8,U+96EA,U+9732,U+997C,U+9EA6,U+9EBB,U+9F99,U+FF0C,U+FF0F,U+FF1F; }
/* End generated font ranges */
:root {
  --font-title: 'Catcat Display', 'Fishguard UI', sans-serif;
  --font-body: 'Fishguard UI', sans-serif;
  font-family: var(--font-body);
  color: #765b3e; background: #fff7ef; font-synthesis: none;
  --ink: #765b3e; --paper: #fffbee; --line: #90a17d;
  --button-apricot: linear-gradient(180deg, #ffdaa6, #f0b477);
  --button-sky: linear-gradient(180deg, #c9eaf0, #a8d9e4);
  --button-cream: linear-gradient(180deg, #fffdf5, #fbefd9);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100dvh; background: #fff7ef; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; border: 0; }
button:disabled { cursor: default; }
h2, h3, .primary-button, .secondary-button, .cat-actions button, .help-button, .level-badge, .tool-button, .collection-card strong, .catalog-card strong, .brand-caption, .level-node { font-family: var(--font-title); font-weight: 700; }
button:focus-visible, a:focus-visible { outline: 3px solid #528b9c; outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex-shrink: 0; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page-wrap { max-width: 560px; margin: 12px auto; padding: 20px 22px 0; position: relative; isolation: isolate; border-radius: 30px; background: radial-gradient(ellipse at 50% 8%, #fffdf5 0, transparent 62%), #fff7ef; overflow: hidden; }
.page-wrap:before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 160px; background: url('assets/catcat-footer-leaves-v01.webp') bottom center / 100% auto no-repeat; pointer-events: none; z-index: -1; }
.topbar { position: relative; margin-bottom: 18px; }
.brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; white-space: nowrap; }
.brand-logo { display: block; width: min(78%, 330px); height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.brand-caption { display: block; color: #856444; font-size: 17px; font-weight: 700; letter-spacing: 3px; margin-top: 0; }
.top-actions { position: absolute; inset: 0; pointer-events: none; }
.icon-button { position: absolute; top: 12px; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--button-cream); color: #a17b54; border: 2px solid #fffdf5; box-shadow: 0 3px 0 #e1c8a1, 0 5px 10px #a17b5412; pointer-events: auto; }
#sound-button { left: 0; } #help-button { right: 0; }
.icon-button:hover { background: #ffebc1; }
.icon-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.help-button { font-size: 29px; font-weight: 700; }
.layout { display: flex; flex-direction: column; gap: 12px; }
.side-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 5px; }
.journey { display: flex; align-items: center; gap: 22px; }
.level-path { list-style: none; display: flex; justify-content: space-between; position: relative; width: 82px; padding: 0; margin: 0; }
.level-path:before { content: ''; position: absolute; left: 13px; right: 13px; top: 13px; height: 3px; background: #dfceac; }
.level-path li { z-index: 1; }
.level-node { width: 28px; height: 28px; border-radius: 50%; background: #fffbed; border: 2px solid #d8c7a5; color: #bba780; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.level-node.current { background: #ffd058; border-color: #fff7d6; color: #8b692d; box-shadow: 0 1px 0 #d4b66e; }
.level-node.done { background: #96c975; border-color: #e6f2d5; color: #fffdf0; }
.collection-card { position: relative; display: flex; align-items: center; gap: 6px; background: #fffaf0; border: 2px solid #fffdf6; border-radius: 17px; padding: 4px 10px 4px 6px; text-align: left; box-shadow: 0 2px 0 #ead7b8; }
.collection-card:hover { background: #fff2d0; }
.collection-drawing { width: 40px; height: 42px; flex: 0 0 auto; }
.collection-drawing svg { width: 100%; height: 100%; }
.collection-card strong { font-size: 17px; font-weight: 700; color: #855f3e; }
.collection-card small { position: absolute; top: -5px; right: -4px; display: grid; place-items: center; min-width: 20px; height: 20px; border: 2px solid #fff7ef; border-radius: 50%; background: #ffc983; color: #956638; font-size: 10px; font-weight: 700; }
.game-card { width: 100%; padding: 0; position: relative; }
.level-badge { margin: 0; font-size: 19px; font-weight: 700; color: #89633f; white-space: nowrap; }
.progress-track { height: 3px; background: #e9dfc6; border-radius: 8px; margin: 0 8px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: #aecf87; border-radius: 8px; transition: width .25s; }
.board-area { position: relative; margin: 0 -4px; }
.board { width: 100%; margin: 0 auto; aspect-ratio: 6.6 / 5.6; position: relative; isolation: isolate; }
.tile { position: absolute; aspect-ratio: 1; background: #fffaf0; border: 1px solid #b9c1a3; border-radius: 16%; box-shadow: 0 3px 0 #b6c1a0; display: grid; place-items: center; padding: 0; transition: background .12s, transform .12s; user-select: none; -webkit-user-select: none; }
.tile-art { position: absolute; inset: 9%; }
.tile-sprite { display: block; background-image: var(--tile-sheet); background-size: var(--sprite-w) var(--sprite-h); background-position: var(--sprite-x) var(--sprite-y); background-repeat: no-repeat; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .tile:not(.covered):not(:disabled):hover { background: #fffef7; border-color: #6c9058; transform: translateY(-2px); } }
.tile:not(.covered):not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 #a4ae82; }
.tile.covered { background: #cbd5b5; border-color: #b4bea2; box-shadow: 0 2px 0 #b7c0a5; }
.tile.covered .tile-art { opacity: .45; }
.tile.uncovered { animation: uncover .16s ease-out; }
@keyframes uncover { from { background: #e4e8cf; transform: translateY(1px) scale(.97); } to { background: #fffaf0; transform: none; } }
.board-toast { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scale(.95); background: #fff3c3; border: 1px solid #dfc780; border-radius: 18px; padding: 7px 15px; font-size: 12px; color: #927341; opacity: 0; pointer-events: none; white-space: nowrap; z-index: 99; transition: opacity .15s, transform .15s; }
.board-toast.show { opacity: 1; transform: translateX(-50%) scale(1); }
.tray-section { position: relative; margin: 0 auto; background: #ffe396; border: 3px solid #ffedb3; border-radius: 21px; padding: 10px; box-shadow: 0 2px 0 #f4d888; }
.tray { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.tray-slot { aspect-ratio: 1; border: 1.5px solid #efbb62; border-radius: 10px; background: #fff2d5; position: relative; }
.tray-piece { position: absolute; inset: -1px; display: grid; place-items: center; background: #fffaf0; border: 1.5px solid #edb961; border-radius: 10px; }
.tray-piece.clearing { animation: match-pop .27s ease-in forwards; }
.tray-section.crowded { background: #ffd7a5; border-color: #ffebcc; }
.tray-section.crowded .tray-slot:empty { background: #fffaf0; border-color: #e79c67; }
.game-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 2px 8px; }
.tool-button { position: relative; display: flex; gap: 8px; align-items: center; justify-content: center; min-width: 0; min-height: 54px; padding: 12px 14px; background: var(--button-sky); border: 2px solid #edfaff; border-radius: 20px; color: #567f8f; box-shadow: 0 4px 0 #88b7c5, 0 6px 12px #7197a21a, inset 0 1px 0 #fff9; transition: transform .12s, filter .12s; }
.tool-button:hover:not(:disabled) { filter: brightness(1.04); }
.tool-button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #88b7c5; }
.tool-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tool-button span { font-size: 16px; font-weight: 700; white-space: nowrap; }
.tool-uses { position: absolute; right: 6px; top: 5px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fffaf0; color: #4298d6; font-size: 10px; font-weight: 700; }
.tool-button:disabled .tool-uses { opacity: .7; }
.tool-button:disabled { background: #e8e2d6; border-color: #f8f1e6; box-shadow: 0 3px 0 #d1c6b3; color: #b4a68f; }
.restart-link { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 17px auto 0; min-height: 36px; padding: 6px 16px; border-radius: 18px; border: 1px solid #fffdf2; box-shadow: 0 2px 0 #e5d5bb; background: var(--button-cream); color: #ac8c65; font-size: 12px; }
.reserve-space { height: 68px; display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; }
.reserve-section { display: flex; justify-content: center; }
#reserve { display: flex; gap: 8px; }
.reserve-piece { position: relative; width: 52px; height: 52px; padding: 0; border-radius: 10px; background: #fffaf0; border: 1.5px solid #8ba176; box-shadow: 0 3px 0 #a4ae82; }
.reserve-piece:hover:not(:disabled) { background: #fffef7; border-color: #6c9058; }
.reserve-piece:active:not(:disabled) { transform: translateY(2px); }
.page-footer { text-align: center; padding: 22px 20px 38px; min-height: 72px; font-size: 10px; color: #a18762; }
dialog { width: min(428px, calc(100vw - 32px)); max-height: calc(100dvh - 38px); overflow-y: auto; border: 2px solid #f1dfc2; border-radius: 27px; padding: 0; color: var(--ink); background: #fffbf2; box-shadow: 0 7px 0 #cfb79855, 0 24px 70px #5e49352b; }
dialog::backdrop { background: #59483155; backdrop-filter: blur(3px); }
.modal-body { padding: 33px 29px 26px; position: relative; text-align: center; }
.modal-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; line-height: 1; border: 2px solid #fffdf6; border-radius: 50%; background: var(--button-cream); color: #b79973; box-shadow: 0 2px 0 #e3ceb0; }
#modal-title:focus { outline: none; }
.modal-eyebrow { display: block; color: #99a17a; font-size: 10px; letter-spacing: 2px; margin-bottom: 13px; }
.modal-body h2 { font-size: 26px; color: #855c41; margin: 0 0 12px; font-weight: 700; }
.modal-body p { font-size: 12px; color: #968e70; line-height: 1.9; margin: 0 0 20px; }
.primary-button { width: 100%; min-height: 49px; padding: 12px 15px; border: 2px solid #fff0cf; border-radius: 17px; background: var(--button-apricot); color: #845331; font-size: 17px; font-weight: 700; box-shadow: 0 4px 0 #d99c64, 0 6px 12px #bb8a5820, inset 0 1px 0 #fff8; transition: transform .12s, filter .12s; }
.primary-button:hover { filter: brightness(1.035); }
.primary-button:active { transform: translateY(3px); box-shadow: 0 1px 0 #d99c64; }
.secondary-button { width: 100%; display: block; min-height: 40px; background: var(--button-cream); border: 1px solid #f1e1c9; box-shadow: 0 2px 0 #e9d7bb; font-size: 12px; color: #a68761; border-radius: 13px; padding: 9px; margin-top: 14px; }
.secondary-button:hover { filter: brightness(1.025); }
.arrival-wrap { position: relative; display: grid; place-items: center; height: 190px; margin-bottom: 15px; }
.arrival-door { display: grid; place-items: center; width: 105px; height: 132px; background: #e9c697; border: 2px solid #ab936d; border-radius: 50px 50px 3px 3px; position: relative; }
.arrival-door span { color: #fff9e7; font-size: 40px; font-weight: 700; }
.arrival-door i { position: absolute; right: 10px; top: 73px; width: 9px; height: 9px; border-radius: 50%; background: #b89c70; }
.arrival-sound { position: absolute; right: 15%; top: 14px; border: 1px solid #dfcdaa; border-radius: 50%; padding: 8px 12px; color: #b09061; font-size: 14px; transform: rotate(9deg); }
.cat-view { padding: 0; overflow: hidden; }
.cat-view-header { padding: 23px 22px 17px; text-align: center; background: #fffbf2; }
.cat-view-header .modal-eyebrow { margin-bottom: 7px; color: #b6966e; font-size: 10px; letter-spacing: 2px; }
.modal-body .cat-view-header h2 { color: #80563c; font-size: 25px; margin: 0; font-weight: 700; }
.home-subtitle { display: block; margin-top: 5px; color: #aa8e6a; font-size: 11px; }
.cat-view .modal-close { z-index: 5; background: #fff7e8; border-color: #ead9bb; }
.cat-view-bottom { padding: 15px 22px 19px; }
.cat-view-bottom .primary-button { margin-top: 15px; border-radius: 17px; }
.cat-view-bottom .secondary-button { margin-top: 4px; padding: 9px; color: #a18b69; }
.cat-profile { text-align: left; }
.cat-profile-title { display: flex; align-items: baseline; gap: 10px; }
.cat-profile-title h3 { margin: 0; color: #815c3f; font-size: 18px; font-weight: 700; }
.cat-profile-title > span { font-size: 11px; color: #aa8b65; }
.modal-body .cat-intro { margin: 7px 0 8px; color: #947b5b; font-size: 11px; line-height: 1.8; }
.cat-traits { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-traits span { background: #f6edd8; color: #a08359; padding: 3px 9px; border-radius: 10px; font-size: 9px; }
.cat-traits span:last-child { background: #edf1df; color: #8a996d; }
.cat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.cat-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; background: #fff1df; color: #bd8857; border: 1.5px solid #f3d6b1; border-radius: 14px; font-size: 12px; font-weight: 700; }
.cat-actions button:last-child { background: #eef3e4; color: #8c9e6f; border-color: #dce6c7; }
.cat-actions button:hover { filter: brightness(1.03); }
.cat-actions button:active { transform: translateY(1px); }
.cat-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-actor { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 80%; animation: cat-breathe var(--breath-duration) ease-in-out var(--breath-delay) infinite; pointer-events: none; }
.cat-sprite { display: block; position: absolute; left: var(--frame-left); top: var(--frame-top); width: var(--frame-width); height: var(--frame-height); background-image: var(--cat-sheet); background-size: var(--frame-sheet-w) var(--frame-sheet-h); background-position: var(--frame-x) var(--frame-y); background-repeat: no-repeat; pointer-events: none; }
.cat-actor[data-mood="pet"]:after { content: '♥'; position: absolute; top: 17%; right: 17%; color: #f0a198; font-size: 18px; animation: cat-heart 1.5s ease-out infinite; }
.cat-actor[data-cat-id="1"][data-mood="pet"]:after { top: 30%; right: 25%; }
@keyframes cat-breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-1px) scale(1.01,1.018); } }
@keyframes cat-heart { 0% { opacity: 0; transform: translateY(0) scale(.65); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-23px) scale(1.15); } }
.welcome-scene { position: relative; height: 260px; isolation: isolate; background: #f8e2b7 var(--welcome-room, url('assets/catcat-home-room-v01.webp')) 38% 64% / 120% auto no-repeat; overflow: hidden; }
.welcome-scene:after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #fffaf02b, transparent 40%); }
.reward-reveal { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; display: grid; place-items: center; background: transparent; }
.reward-cat { width: 280px; height: 280px; position: relative; margin-top: 22px; }
.welcome-sticker { position: absolute; right: 14px; bottom: 15px; color: #ad8453; background: #fff7decf; border: 2px solid #fff9ec; border-radius: 12px; padding: 6px 12px; transform: rotate(-5deg); font-size: 11px; letter-spacing: 1px; pointer-events: none; }
dialog[data-kind="collection"] { width: min(480px, calc(100vw - 24px)); border-color: #e2cfaa; background: #fffbf2; }
dialog[data-kind="reward"] { border-color: #e2cfaa; background: #fffbf2; }
.home-room { position: relative; width: min(100%, 448px, max(160px, calc(80dvh - 350px))); aspect-ratio: 4 / 5; margin: 0 auto; background: #f6e4c7 var(--room-image) center / 100% 100% no-repeat; overflow: hidden; border-radius: 18px; isolation: isolate; }
.home-cats { position: absolute; inset: 0; }
.home-cat { position: absolute; width: 47%; aspect-ratio: 1; padding: 0; display: block; background: transparent; border-radius: 30%; }
.cat-place { display: block; width: 100%; height: 100%; }
.cat-name { position: absolute; top: 82%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9px; color: #a07b52; padding: 3px 8px; border-radius: 10px; background: #fff8eac9; border: 1px solid #fff9ed; }
.home-cat[aria-pressed="true"] .cat-name { color: #99673c; background: #ffedb8; border-color: #fff6d9; }
.home-cat:focus-visible { outline-offset: -10px; }
.modal-body .cat-message { position: absolute; z-index: 4; top: 14px; left: 50%; transform: translateX(-50%) translateY(4px); width: max-content; max-width: 87%; margin: 0; padding: 8px 12px; background: #fffaf1eb; border: 1px solid #f4dfb9; border-radius: 14px; box-shadow: 0 2px 5px #ba96601a; font-size: 11px; line-height: 1.6; color: #9c7853; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.modal-body .cat-message.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sun-dust { position: absolute; inset: 0; pointer-events: none; }
.sun-dust i { position: absolute; top: 25%; left: 28%; width: 4px; height: 4px; border-radius: 50%; background: #fff6d1; opacity: .65; animation: dust-float 6s ease-in-out infinite; }
.sun-dust i:nth-child(2) { left: 17%; top: 39%; animation-delay: -2s; width: 3px; height: 3px; }
.sun-dust i:nth-child(3) { left: 46%; top: 32%; animation-delay: -4s; width: 2px; height: 2px; }
@keyframes dust-float { 0%, 100% { transform: translate(0,0); opacity: .1; } 50% { transform: translate(9px,-15px); opacity: .7; } }
.modal-body .empty-home-note { margin: 0; color: #ac9674; font-size: 12px; }
.help-example { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 18px 0 27px; }
.example-tile { position: relative; width: 65px; height: 65px; background: #fffbee; border: 1.5px solid #a5b18c; border-radius: 12px; box-shadow: 0 2px 0 #b6c39c; }
.help-lines { display: flex; flex-direction: column; gap: 18px; text-align: left; margin: 0 0 28px; }
.help-line { display: flex; gap: 12px; align-items: flex-start; }
.help-line > span { width: 23px; height: 23px; display: grid; place-items: center; background: #f8e1a0; border: 1px solid #d6c493; border-radius: 50%; color: #9a895e; font-size: 12px; flex-shrink: 0; }
.help-line p { font-size: 12px; line-height: 1.8; margin: 0; }
.help-line strong { color: #7f8863; }
.loss-illustration { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 24px 0; padding: 8px 6px; border: 2px solid #ffedb3; border-radius: 12px; background: #ffe396; box-shadow: 0 2px 0 #edc77e; }
.loss-illustration.can-rescue { margin-top: 72px; }
.loss-slot { display: block; position: relative; aspect-ratio: 1; border: 1px solid #efbb62; border-radius: 6px; background: #fff2d5; }
.loss-card { position: absolute; inset: -1px; background: #fffaf0; border: 1px solid #d4c199; border-radius: 6px; box-shadow: 0 2px 0 #d9cbaa; }
.loss-card.will-move { transform: translateY(-145%); animation: rescue-preview 3.2s ease-in-out infinite; }
@keyframes rescue-preview { 0%, 16%, 100% { transform: translateY(0); } 40%, 80% { transform: translateY(-145%); } }
.flying-tile { position: fixed; display: grid; place-items: center; background: #fffbee; border: 1.5px solid #92a17c; border-radius: 12px; z-index: 101; pointer-events: none; box-shadow: 0 2px 0 #9cad86; }
.confetti { position: fixed; width: 6px; height: 8px; border-radius: 2px; z-index: 2000; pointer-events: none; }
.home-album-button { position: absolute; top: 15px; left: 10px; z-index: 5; display: flex; align-items: center; gap: 4px; min-height: 36px; padding: 7px 9px; border: 1px solid #fffcf2; box-shadow: 0 2px 0 #e5cbaa; border-radius: 12px; color: #b77953; background: var(--button-cream); font-size: 11px; }
.home-album-button svg, .catalog-book svg, .catalog-empty svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
dialog[data-kind="catalog"], dialog[data-kind="catalog-detail"] { width: min(480px, calc(100vw - 24px)); border-color: #e7d5b8; background: #fffbf2; }
dialog[data-kind="catalog"] { overflow: hidden; }
.modal-body.catalog-shell { display: flex; flex-direction: column; height: min(700px, calc(100dvh - 44px)); padding: 0; }
.catalog-header { position: relative; flex: 0 0 auto; padding: 27px 18px 15px; background: #fff5e6; border-bottom: 1px solid #f0dfc7; }
.catalog-back { display: flex; gap: 1px; align-items: center; position: absolute; top: 12px; left: 12px; z-index: 5; min-height: 38px; padding: 6px 9px; border-radius: 11px; background: transparent; color: #ac815c; font-size: 12px; }
.catalog-back:hover { background: #f9e9d4; }
.catalog-book { display: flex; justify-content: center; color: #d29264; margin: 0 0 6px; }
.catalog-book svg { width: 26px; height: 26px; }
.modal-body .catalog-header h2 { margin: 0; color: #865d42; font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.modal-body .catalog-header p { margin: 6px 0 14px; color: #ac8a68; font-size: 11px; }
.catalog-scroll { flex: 1; min-height: 0; padding: 17px 17px 25px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dfc7a8 transparent; }
.catalog-chapter + .catalog-chapter { margin-top: 23px; }
.catalog-chapter-title { display: flex; justify-content: space-between; align-items: center; margin: 0 3px 11px; }
.catalog-chapter-title h3 { margin: 0; font-size: 14px; color: #916846; }
.catalog-chapter-title > span { color: #ac9579; font-size: 10px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
.catalog-card { min-width: 0; position: relative; padding: 9px 7px 17px; border-radius: 18px; background: #fff8ec; box-shadow: inset 0 0 0 1px #f2e6d2; transition: transform .15s, background .15s; }
.catalog-card:hover { transform: translateY(-2px); background: #fff1db; }
.catalog-card.is-owned { background: #fff0d6; box-shadow: inset 0 0 0 1px #efdab6; }
.catalog-card-portrait { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 15px; overflow: hidden; }
.catalog-card-portrait .cat-actor { animation: none; }
.cat-portrait { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.catalog-card strong { display: block; font-size: 17px; font-weight: 700; color: #92664a; }
.catalog-card small { display: block; margin-top: 6px; color: #a98d71; font-size: 11px; line-height: 1.5; }
.catalog-card.is-owned small { color: #968252; }
.catalog-stamp { position: absolute; top: 7px; right: 7px; z-index: 1; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; }
.catalog-stamp { background: #e4eacb; color: #8a9b5d; }
.catalog-footer { display: flex; justify-content: center; align-items: center; gap: 7px; flex: 0 0 auto; padding: 13px 12px; border-top: 1px solid #f1e6d2; color: #b49b7b; background: #fffaf0; font-size: 10px; }
.catalog-footer span { margin-left: 4px; }
.catalog-empty { display: flex; flex-direction: column; align-items: center; padding: 50px 12px; color: #bb9874; }
.catalog-empty svg { width: 45px; height: 45px; margin-bottom: 12px; }
.catalog-empty h3 { font-size: 15px; font-weight: 700; }
.catalog-empty .secondary-button { width: auto; padding: 11px 25px; background: #f9ecd7; }
.catalog-detail-header { padding: 27px 50px 5px; }
.catalog-detail-status { display: inline-block; margin: 4px 0 10px; color: #b79678; font-size: 10px; }
.catalog-detail-status.owned { color: #98a373; }
.modal-body .catalog-detail-header h2 { margin: 0 0 5px; color: #80583d; font-size: 27px; font-weight: 700; }
.catalog-detail-header > span:last-child { color: #ae8c6c; font-size: 11px; }
.catalog-detail-scene { position: relative; display: grid; place-items: center; padding: 6px 0 0; background: radial-gradient(ellipse at 50% 62%, #ffecd055, transparent 70%); }
.catalog-detail-portrait { width: min(80%, 272px, max(145px, calc(100dvh - 430px))); aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.catalog-detail-portrait .cat-actor { position: absolute; inset: 0; }
.catalog-detail-bottom { padding: 0 25px 22px; }
.catalog-action-label { display: inline-block; padding: 5px 11px; background: #faecd5; border-radius: 15px; font-size: 10px; color: #af885e; }
.modal-body .catalog-intro { max-width: 330px; margin: 13px auto 17px; text-align: left; color: #a1876c; font-size: 12px; line-height: 1.9; }
.catalog-detail-bottom .primary-button { margin-top: 12px; border-radius: 16px; }
#effects { position: fixed; inset: 0; pointer-events: none; z-index: 1000; overflow: hidden; }
.ui-mark { display: block; width: 24px; height: 24px; overflow: visible; flex-shrink: 0; }
.ui-mark .mark-line { fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.ui-mark .mark-solid { fill: currentColor; stroke: none; }
.ui-mark .mark-base { fill: #f2cda0; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.icon-button svg.ui-mark { stroke: none; fill: none; }
.level-node .ui-mark { width: 17px; height: 17px; }
.modal-close .ui-mark { width: 20px; height: 20px; margin: 0; place-self: center; }
.restart-link .ui-mark, .catalog-back .ui-mark { width: 18px; height: 18px; }
.catalog-footer .ui-mark { width: 16px; height: 16px; color: #dab794; }
.catalog-stamp { width: 25px; height: 25px; top: 10px; right: 10px; background: #f6e2b9; color: #b5925d; }
.catalog-stamp .ui-mark { width: 17px; height: 17px; }
.catalog-empty { padding-top: 38px; }
.empty-album { display: grid; place-items: center; width: 105px; height: 105px; background: #faebd5; border: 4px solid #fff6e6; border-radius: 32px; transform: rotate(-7deg); margin-bottom: 17px; box-shadow: 0 5px 0 #e9d6b7; }
.catalog-empty .empty-album .ui-mark { margin: 0; width: 64px; height: 64px; }
.catalog-empty .primary-button { max-width: 195px; margin-top: 12px; }
.catalog-empty p { white-space: pre-line; }
@keyframes drop-in { from { transform: scale(.85); opacity: .5; } to { transform: scale(1); opacity: 1; } }
@keyframes match-pop { 30% { transform: scale(1.1); } to { transform: scale(.2); opacity: 0; } }
@keyframes reveal { from { transform: translateY(8px) scale(.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@media (max-width: 760px) {
  .page-wrap { max-width: 460px; margin: 0 auto; padding: 14px 14px 0; border-radius: 0; min-height: 100dvh; }
  .topbar { margin-bottom: 16px; }.brand-logo { width: min(79%, 294px); }.brand-caption { font-size: 14px; letter-spacing: 2px; }
  .icon-button { width: 35px; height: 35px; top: 8px; }.icon-button svg { width: 21px; height: 21px; }.help-button { font-size: 25px; }
  .layout { gap: 10px; }.side-panel { padding: 0 4px; }.journey { gap: 17px; }.level-path { width: 70px; }.level-node { width: 25px; height: 25px; font-size: 11px; }.level-path:before { top: 12px; }.level-badge { font-size: 17px; }
  .collection-card { padding: 3px 9px 3px 5px; gap: 4px; }.collection-drawing { width: 33px; height: 36px; }.collection-card strong { font-size: 15px; }
  .tile { border-width: 1px; box-shadow: 0 3px 0 #b6c1a0; }.tile.covered { box-shadow: 0 2px 0 #b7c0a5; }
  .board-toast { font-size: 11px; }.tray-section { padding: 8px 7px; border-radius: 17px; }.tray { gap: 4px; }.tray-slot, .tray-piece { border-radius: 8px; }
  .reserve-space { height: 62px; }.reserve-piece { width: 46px; height: 46px; }
  .game-tools { gap: 8px; margin-top: 15px; }.tool-button { min-height: 52px; padding: 11px 10px; gap: 6px; border-radius: 17px; }.tool-button span { font-size: 13px; }.tool-button svg { width: 21px; height: 21px; }.tool-uses { right: 4px; top: 4px; width: 14px; height: 14px; font-size: 9px; }
  .modal-body { padding: 33px 22px 24px; }.cat-view { padding: 0; }.cat-view-header { padding: 18px 20px 13px; }.cat-view-bottom { padding: 12px 17px 15px; }.modal-body .cat-view-header h2 { font-size: 23px; }.welcome-scene { height: 240px; }.reward-cat { width: 260px; height: 260px; }.cat-actions { margin-top: 10px; }.cat-actions button { min-height: 40px; }.home-room { border-radius: 14px; }
}
@media (max-width: 355px) {
  .page-wrap { padding: 12px 10px 0; }.brand-logo { width: 79%; }.brand-caption { font-size: 12px; }.icon-button { width: 31px; height: 31px; }
  .journey { gap: 12px; }.collection-drawing { width: 29px; height: 33px; }.collection-card strong { font-size: 13px; }
  .level-badge { font-size: 15px; }.game-tools { gap: 6px; }.tool-button { gap: 5px; padding: 10px 6px; }.tool-button svg { width: 18px; height: 18px; }.tool-button span { font-size: 12px; }
}
.is-challenge .brand-logo { width: 56%; max-width: 220px; }
.is-challenge .brand-caption { display: none; }
.is-challenge .topbar { margin-bottom: 10px; }
.is-challenge .page-footer { padding: 12px; min-height: 24px; }
@media (min-width: 761px) {
  .page-wrap.is-challenge { max-width: min(560px, 50dvh); }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.room-navigation { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 9px auto 0; color: #a2825d; }
.room-navigation > div { min-width: 100px; display: grid; justify-items: center; gap: 5px; }
.room-navigation strong { font-family: var(--font-title); font-size: 14px; font-weight: 700; }
.room-navigation button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f9e7cc; color: #b48a5e; box-shadow: 0 2px 0 #e7cba3; }
.room-navigation button:disabled { opacity: .3; cursor: default; }
.room-navigation button:last-child .ui-mark { transform: rotate(180deg); }
.room-navigation .ui-mark { width: 19px; height: 19px; }
.room-dots { display: flex; gap: 5px; }
.room-dots i { width: 4px; height: 4px; border-radius: 50%; background: #dfd4c0; }
.room-dots i.current { width: 12px; border-radius: 4px; background: #d6a16a; }
.home-room { touch-action: pan-y; }
.arrival-door { transform-origin: 8% 50%; transition: transform .58s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.is-opening .arrival-door { transform: perspective(500px) rotateY(-72deg); opacity: .2; }
.is-opening .arrival-sound { opacity: 0; }
.welcome-scene.is-arriving .reward-reveal { animation: cat-arrive .65s cubic-bezier(.2,.75,.2,1) both; }
@keyframes cat-arrive { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-height: 650px) {
  dialog[data-kind="collection"] .cat-view-header { padding-top: 13px; padding-bottom: 9px; }
  dialog[data-kind="collection"] .cat-view-bottom { padding: 7px 15px 12px; }
  dialog[data-kind="collection"] .cat-intro { margin: 5px 0; font-size: 10px; line-height: 1.6; }
  dialog[data-kind="collection"] .cat-traits { display: none; }
  dialog[data-kind="collection"] .cat-actions { margin-top: 7px; }
  dialog[data-kind="collection"] .cat-actions button { min-height: 34px; }
  dialog[data-kind="collection"] .primary-button { min-height: 42px; margin-top: 10px; padding: 8px 12px; }
  .room-navigation { margin-top: 6px; }
}

/* The courtyard is the resting place between challenges. */
.page-wrap.is-hub { max-width: 480px; padding-bottom: 12px; }
.is-hub .topbar { margin-bottom: 15px; }
.is-hub .brand-logo { width: 62%; max-width: 270px; }
.is-hub .brand-caption { font-size: 12px; letter-spacing: 2px; }
.is-hub .page-footer { min-height: 8px; padding: 4px; }
.hub-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 11px; color: #aa865f; font-size: 11px; }
.hub-heading span:first-child { padding: 5px 12px; background: #f9e6c9; border-radius: 20px; color: #956e46; }
.hub-scene { position: relative; height: clamp(260px, 47dvh, 420px); overflow: hidden; border: 3px solid #fff8e9; border-radius: 28px; background: #f4ddba url('assets/catcat-courtyard-v01.webp') center 65% / cover no-repeat; box-shadow: 0 4px 0 #eddbbd; }
.hub-scene-light { position: absolute; inset: 0; background: linear-gradient(0deg, #fff5db22, transparent 70%); pointer-events: none; }
.hub-cat { position: absolute; left: 19%; bottom: 17%; width: 62%; aspect-ratio: 1; background: transparent; padding: 0; }
.hub-bubble { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); padding: 7px 14px; border-radius: 20px; background: #fff9e9ef; color: #a47c55; font-size: 11px; white-space: nowrap; }
.hub-letter { position: absolute; width: 150px; left: calc(50% - 75px); bottom: 17%; display: grid; justify-items: center; gap: 6px; color: #c29865; transform: rotate(-5deg); }
.hub-letter .ui-mark { width: 84px; height: 84px; padding: 13px; background: #fff7e6; box-shadow: 0 4px 0 #cbae8355; border-radius: 21px; }
.hub-letter > span { background: #fff9e9ed; padding: 6px 12px; border-radius: 20px; font-size: 11px; }
.companion-chip { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 5px; align-items: center; color: #9c795b; background: #fff9edeb; border: 1px solid #fffdf4; border-radius: 20px; padding: 7px 11px; font-size: 10px; box-shadow: 0 2px 0 #ddc6a766; }
.companion-chip .ui-mark { width: 15px; height: 15px; color: #cea17a; }
.hub-challenge { margin-top: 20px; }
.daily-start { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 56px; font-size: 20px; border-radius: 20px; }
.daily-start .ui-mark { width: 25px; height: 25px; color: #a47341; }
.daily-start.is-complete { background: linear-gradient(#edf4db, #dbe9c1); border-color: #faffed; box-shadow: 0 4px 0 #b6c49b; color: #7c8e5e; }
.daily-caption { text-align: center; margin: 10px 0 18px; color: #ad957a; font-size: 10px; }
.hub-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.hub-nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 3px; border-radius: 18px; background: #fffaf0; border: 1px solid #f2e4cb; box-shadow: 0 3px 0 #eadcc5; color: #b68c62; }
.hub-nav button:nth-child(2) { color: #96a17e; }.hub-nav button:nth-child(3) { color: #7e9eab; }
.hub-nav .ui-mark { width: 28px; height: 28px; }
.hub-nav strong { font-family: var(--font-title); font-size: 14px; font-weight: 700; }
.hub-nav small { font-size: 9px; color: #b19c84; }
.legacy-resume { display: block; margin: 16px auto 0; padding: 5px; font-size: 11px; color: #b0906d; background: transparent; }
.game-home-button { display: grid; place-items: center; background: var(--button-cream); border-radius: 12px; width: 34px; height: 34px; flex-shrink: 0; box-shadow: 0 2px 0 #e9d5b5; color: #b4926b; }
.game-home-button .ui-mark { width: 24px; height: 24px; }
.side-panel { gap: 8px; }.side-panel .journey { margin-right: auto; gap: 10px; }
.daily-entry-cat { width: min(230px, 82%); height: 185px; margin: 0 auto 8px; }
.daily-entry-cat img { display: block; width: 100%; height: 100%; object-fit: contain; animation: invitation-bob 3s ease-in-out infinite; }
@keyframes invitation-bob { 50% { transform: translateY(-4px) rotate(-1deg); } }
.little-mascot { display: block; width: 100%; height: 100%; padding: 20%; }
.little-mascot .ui-mark { width: 100%; height: 100%; filter: drop-shadow(0 3px 0 #dcc4a944); }
.daily-reset-note { display: block; margin-top: 16px; font-size: 10px; color: #b39c80; line-height: 1.6; }
.companion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.companion-card { display: grid; padding: 4px 4px 12px; border: 2px solid #f0e4d1; border-radius: 16px; background: #fffcf5; color: #9d7c57; }
.companion-card.selected { border-color: #e7ba7e; background: #fff0d5; }
.companion-card > span { display: block; width: 100%; aspect-ratio: 1; }
.companion-card strong { font-size: 12px; }.companion-card small { font-size: 9px; margin-top: 4px; color: #b39571; }
.companion-empty { padding: 30px 0; }.companion-empty .ui-mark { width: 60px; height: 60px; color: #e4c393; margin: 0 auto 20px; }
.world-cards { display: grid; gap: 12px; }
.world-card { display: grid; grid-template-columns: 42% 58%; align-items: center; border-radius: 22px; background: linear-gradient(135deg,#faf0d9,#fffaf0); border: 1px solid #eee0c6; padding: 10px 13px 13px 4px; text-align: left; }
.world-card:nth-child(2) { background: linear-gradient(135deg,#eff1de,#fffaf0); }.world-card:nth-child(3) { background: linear-gradient(135deg,#e9f0ed,#fffaf0); }
.world-portrait { height: 126px; }.world-card h3 { font-size: 17px; margin: 0 0 5px; }
.modal-body .world-card p { margin: 0 0 10px; font-size: 10px; line-height: 1.5; }
.world-card .primary-button, .world-card .secondary-button { margin: 0; min-height: 36px; padding: 7px 5px; font-size: 11px; border-radius: 12px; }
.result-progress { margin: 15px 0 26px; }
.result-runway { position: relative; height: 115px; margin: 0 10px; }
.result-runner { position: absolute; left: 0; bottom: -4px; width: 96px; height: 96px; z-index: 1; }
.result-runner .little-mascot { padding: 10%; }
.result-finish { position: absolute; bottom: 7px; right: -3px; color: #d8bb91; }.result-finish .ui-mark { width: 27px; height: 27px; }
.result-track { overflow: hidden; height: 14px; background: #f1e5cf; border: 3px solid #f9efd9; border-radius: 15px; box-shadow: 0 2px 0 #e0cbae; }
.result-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#f4cb86,#efad79); border-radius: 12px; }
.result-scale { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 11px; color: #bda384; }
.result-scale strong { font-size: 24px; font-family: var(--font-title); color: #b48354; }.result-scale strong span { font-size: inherit; }
.result-progress.compact { margin: -16px 0 0; }.result-progress.compact .result-runway { height: 83px; }.result-progress.compact .result-runner { width: 80px; height: 80px; }
.result-progress.simple { margin: 20px 0 22px; }
.result-progress.simple .result-runway { height: 29px; margin: 0 3px; }
.result-progress.simple .result-runner { width: 22px; height: 22px; bottom: 5px; color: #cf9568; }
.result-progress.simple .result-runner .ui-mark { width: 100%; height: 100%; }
.result-progress.simple .result-finish .ui-mark { width: 20px; height: 20px; }
#modal[data-kind="win"] .arrival-wrap { height: 135px; margin: 0 0 15px; } #modal[data-kind="win"] .arrival-door { transform: scale(.8); } #modal[data-kind="win"] .is-opening .arrival-door { transform: scale(.8) perspective(500px) rotateY(-72deg); }
.scene-transition { position: fixed; inset: 0; margin: 0; padding: 0; border: 0; border-radius: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; box-shadow: none; z-index: 10000; pointer-events: all; overflow: hidden; isolation: isolate; }
.scene-transition::backdrop { background: transparent; backdrop-filter: none; }
.transition-cream { position: absolute; inset: 0; background: #fff1d6; }
.transition-cats { position: absolute; inset: -80px -30px; display: grid; grid-template-columns: repeat(4, 1fr); align-content: center; }
.transition-cat { display: block; width: 100%; height: auto; aspect-ratio: 1; transform: rotate(var(--tilt)); animation: cats-cover .38s cubic-bezier(.2,.7,.2,1) var(--stagger) both; }
.transition-cat:nth-child(2n) { margin-top: 25px; }.transition-cat > .ui-mark { width: 100%; height: 100%; }
.transition-cat > .ui-mark, .transition-cat > .cat-portrait { scale: 1.35; }
.transition-cat > .cat-actor { animation: none; }
.scene-transition.leaving .transition-cat { animation: cats-leave .32s ease-in var(--stagger) both; }
@keyframes cats-cover { from { transform: translateX(100vw) rotate(var(--tilt)); } to { transform: translateX(0) rotate(var(--tilt)); } }
@keyframes cats-leave { to { transform: translateX(-100vw) rotate(var(--tilt)); opacity: 0; } }
@media (max-width: 760px) { .is-hub .brand-caption { font-size: 11px; }.page-wrap.is-hub { max-width: 460px; }.is-hub .brand-logo { width: 58%; }.hub-scene { border-radius: 24px; } }
@media (max-height: 680px) { .hub-scene { height: 235px; }.is-hub .brand-logo { max-width: 160px; }.is-hub .brand-caption { display: none; }.hub-heading { margin-bottom: 7px; }.hub-challenge { margin-top: 14px; }.daily-caption { margin-bottom: 12px; }.is-hub .topbar { margin-bottom: 8px; } }
@media (max-width: 355px) { .hub-nav { gap: 7px; }.hub-nav strong { font-size: 12px; }.companion-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.world-portrait { height: 105px; }.side-panel .journey { gap: 6px; }.side-panel .level-path { width: 55px; }.level-badge { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .scene-transition { display: none; } }
.account-entry { display: block; margin: 8px auto 0; min-height: 28px; padding: 6px 15px; border-radius: 20px; background: #fcf0dc; color: #a18461; font-family: 'Fishguard Entry', sans-serif; font-size: 10px; max-width: 85%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-challenge .account-entry, .page-wrap:not(.is-hub) .account-entry { display: none; }
.account-tabs { display: flex; border-radius: 15px; background: #f5ecd9; padding: 4px; margin: 22px 0; gap: 4px; }.account-tabs button { flex: 1; padding: 8px; border-radius: 12px; background: transparent; color: #ac9270; }.account-tabs .selected { background: #fffaf0; box-shadow: 0 2px 5px #b7926633; color: #8b6542; }
#account-form { text-align: left; }#account-form label { display: grid; gap: 7px; margin: 17px 0; font-size: 12px; color: #a18460; }#account-form input { min-width: 0; width: 100%; border: 1px solid #e8d6b8; border-radius: 12px; background: #fffdf7; padding: 13px 12px; font: inherit; color: #765b3e; font-size: 16px; }#account-form input:focus { outline: 2px solid #edc28c; outline-offset: 1px; }#account-form input::placeholder { font-size: 11px; color: #bba88f; }.modal-body .account-error { font-size: 11px; color: #bd7961; min-height: 16px; line-height: 1.6; margin: 12px 0; }

/* The playing surface fits the visible webview; the courtyard can still scroll. */
.page-wrap.is-game {
  width: 100%; max-width: 520px; min-height: 0;
  height: 100vh; height: min(100dvh, var(--play-height, 100dvh));
  margin: 0 auto; padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  display: flex; flex-direction: column; border-radius: 0;
}
.is-game .topbar { flex: 0 0 44px; height: 44px; margin-bottom: 6px; }
.is-game .brand { height: 44px; }
.is-game .brand-logo { width: 142px; max-width: 48%; height: 44px; }
.is-game .brand-caption { display: none; }
.is-game .icon-button { top: 0; width: 40px; height: 40px; }
.is-game .layout { flex: 1; min-height: 0; gap: 6px; }
.is-game .side-panel { flex: 0 0 42px; min-height: 42px; gap: 8px; padding: 0 2px; }
.is-game .journey { flex: 1; gap: 12px; min-width: 0; }
.is-game .level-badge { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.is-game .level-path { flex-shrink: 0; width: 62px; }
.is-game .level-node { width: 25px; height: 25px; }
.is-game .level-path:before { top: 12px; }
.is-game .collection-card { height: 40px; padding: 2px 8px 2px 4px; border-radius: 14px; }
.is-game .collection-drawing { width: 31px; height: 33px; }
.is-game .collection-card strong { font-size: 14px; }
.is-game .game-home-button { width: 38px; height: 38px; flex-shrink: 0; }
.is-game .game-card { flex: 1; min-height: 0; display: grid; grid-template-rows: 3px minmax(0, 1fr) 52px auto auto 30px; }
.is-game .board-area { min-width: 0; min-height: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
.is-game .board { flex: 0 0 auto; margin: 0; }
.is-game .reserve-space { height: 52px; padding-top: 2px; align-items: flex-start; }
.is-game .reserve-piece { width: 44px; height: 44px; }
.is-game .tray-section { width: 100%; margin: 0; padding: 6px; border-radius: 16px; }
.is-game .tray { gap: 4px; }
.is-game .game-tools { gap: 8px; margin: 10px 2px 6px; }
.is-game .tool-button { min-height: 46px; padding: 8px; border-radius: 15px; }
.is-game .tool-button svg { width: 21px; height: 21px; }
.is-game .tool-button span { font-size: 14px; }
.is-game .restart-link { min-height: 28px; height: 28px; margin: 0 auto; padding: 4px 16px; }
.is-game .page-footer { min-height: 0; padding: 0; flex: 0 0 auto; }
.is-game #save-note:not([hidden]) { display: block; padding-top: 4px; }
@media (max-width: 355px) {
  .is-game .journey { gap: 5px; }.is-game .level-path { width: 52px; }
  .is-game .level-badge { font-size: 13px; }.is-game .collection-card strong { font-size: 12px; }
}
@media (max-height: 620px) and (max-aspect-ratio: 6/5) {
  .page-wrap.is-game { padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .is-game .topbar { flex-basis: 40px; height: 40px; margin-bottom: 2px; }
  .is-game .brand, .is-game .brand-logo { height: 40px; }
  .is-game .layout { gap: 4px; }.is-game .side-panel { flex-basis: 36px; min-height: 36px; }
  .is-game .collection-card, .is-game .game-home-button { height: 36px; }
  .is-game .game-card { grid-template-rows: 3px minmax(0, 1fr) 42px auto auto 26px; }
  .is-game .reserve-space { height: 42px; }.is-game .reserve-piece { width: 36px; height: 36px; }
  .is-game .tray-section { padding: 4px; }.is-game .game-tools { margin-top: 6px; }
  .is-game .tool-button { min-height: 44px; }.is-game .restart-link { height: 24px; min-height: 24px; }
}
@media (max-height: 500px) and (min-aspect-ratio: 6/5) {
  .page-wrap.is-game { max-width: 900px; }
  .is-game .topbar { position: absolute; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); top: max(6px, env(safe-area-inset-top)); pointer-events: none; }
  .is-game .brand { visibility: hidden; }.is-game .side-panel { padding: 0 48px; }
  .is-game .game-card { grid-template-columns: minmax(0, 1fr) 230px; grid-template-rows: 3px 52px auto auto 30px; column-gap: 16px; }
  .is-game .board-area { grid-area: 1 / 1 / 6 / 2; }
  .is-game .progress-track { grid-area: 1 / 2; }
  .is-game .reserve-space { grid-area: 2 / 2; }
  .is-game .tray-section { grid-area: 3 / 2; align-self: end; }
  .is-game .game-tools { grid-area: 4 / 2; }
  .is-game .restart-link { grid-area: 5 / 2; }
}

/* A known visitor gets a welcome portrait; the daily surprise keeps its reveal. */
.target-welcome { position: relative; width: min(230px, 72%); aspect-ratio: 1; margin: 18px auto 8px; border-radius: 48% 48% 40% 40%; background: var(--cat-tint); }
.target-welcome .cat-actor { position: absolute; width: 105%; height: 105%; bottom: -12%; left: -2.5%; }
.target-heart { position: absolute; top: 13%; right: 8%; font-size: 32px; color: #c88477; transform: rotate(15deg); }
.world-card.is-chosen { border-color: #e7bb80; }
.world-card button:disabled { opacity: .65; cursor: default; box-shadow: none; }
#modal[data-kind="cat-card"] { width: min(440px, calc(100vw - 16px)); max-width: 440px; }
#modal[data-kind="cat-card"] .modal-body { padding: 8px; }
#modal[data-kind="cat-card"] .modal-close { top: 8px; right: 8px; }
#modal[data-kind="cat-card"] h2 { font-size: 18px; line-height: 36px; margin: 0; padding: 0 36px; }
.keepsake-preview { display: grid; place-items: center; width: 100%; margin: 6px auto 8px; }
.keepsake-image { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 169px); margin: auto; border-radius: 13px; box-shadow: 0 6px 18px #9c755c18; -webkit-touch-callout: default; user-select: auto; -webkit-user-select: auto; }
.keepsake-actions { display: flex; flex: 0 0 auto; justify-content: center; gap: 8px; }
.keepsake-actions[hidden], .keepsake-actions [hidden] { display: none; }
.keepsake-actions button { flex: 0 1 auto; width: auto; min-width: 104px; min-height: 36px; margin: 0; padding: 6px 18px; border-width: 1px; border-radius: 10px; font-size: 13px; line-height: 20px; box-shadow: 0 2px 0 #dfb889; }
.keepsake-actions .secondary-button { box-shadow: 0 1px 0 #e9d7bb; }
.keepsake-actions .primary-button:active { transform: translateY(1px); box-shadow: 0 1px 0 #dfb889; }
.modal-body .keepsake-hint { margin: 4px 0 0; font-size: 11px; line-height: 1.5; color: #ac9679; }

.cat-rating { margin: 9px 0 13px; color: #ba914f; }
.rating-line { display: flex; justify-content: center; align-items: center; gap: 7px; }
.rating-stars { display: flex; align-items: center; }
.rating-star { display: block; width: 27px; height: 27px; }
.rating-line strong { font-size: 12px; font-weight: 400; }
.trait-bars { display: grid; gap: 9px; margin: 14px auto 10px; max-width: 285px; }
.trait-row { display: grid; grid-template-columns: 52px 1fr 22px; gap: 12px; align-items: center; font-size: 12px; color: #a08a70; text-align: left; }
.trait-track { display: block; height: 6px; background: #eee5d4; border-radius: 6px; overflow: hidden; }
.trait-track i { display: block; height: 100%; border-radius: inherit; background: #dca18e; }
.trait-row:nth-child(2) i { background: #dfbc76; }
.trait-row:nth-child(3) i { background: #9aac91; }
.trait-row b { font-weight: 400; text-align: right; }
.rating-note { font-size: 10px; line-height: 1.7; color: #b6a88d; display: block; text-align: center; }
.catalog-card .cat-rating { margin: 8px 0 0; }
.catalog-card .rating-star { width: 18px; height: 18px; }
.catalog-card .rating-line { gap: 3px; }
.catalog-card .rating-line strong { font: 11px var(--font-body); }
.world-card .rating-line { justify-content: flex-start; }
.world-card .cat-rating { margin: 3px 0 10px; }
.world-card .rating-star { width: 22px; height: 22px; }

/* Keep a small painted companion visible until the animation is decoded. */
.cat-actor > .cat-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cat-actor.is-sheet-ready > .cat-portrait { display: none; }
